mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdTrack: Udated to new API
This commit is contained in:
parent
a4792246dc
commit
89ecb27742
1 changed files with 5 additions and 3 deletions
|
@ -36,8 +36,10 @@ int CmdTrack (
|
||||||
Database& database)
|
Database& database)
|
||||||
{
|
{
|
||||||
auto filter = getFilter (cli);
|
auto filter = getFilter (cli);
|
||||||
auto timeline = createTimelineFromData (rules, database, filter);
|
auto holidays = subset (filter.range, getHolidays (rules));
|
||||||
for (auto& interval : splitInterval (filter, timeline.excluded (rules)))
|
auto exclusions = getAllExclusions (rules, filter.range);
|
||||||
|
|
||||||
|
for (auto& interval : collapse (filter, exclusions))
|
||||||
database.addInterval (interval);
|
database.addInterval (interval);
|
||||||
|
|
||||||
// TODO intervalSummarїze needs to operate on a vector of similar intervals.
|
// TODO intervalSummarїze needs to operate on a vector of similar intervals.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue