mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +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
|
@ -35,9 +35,11 @@ int CmdTrack (
|
|||
Rules& rules,
|
||||
Database& database)
|
||||
{
|
||||
auto filter = getFilter (cli);
|
||||
auto timeline = createTimelineFromData (rules, database, filter);
|
||||
for (auto& interval : splitInterval (filter, timeline.excluded (rules)))
|
||||
auto filter = getFilter (cli);
|
||||
auto holidays = subset (filter.range, getHolidays (rules));
|
||||
auto exclusions = getAllExclusions (rules, filter.range);
|
||||
|
||||
for (auto& interval : collapse (filter, exclusions))
|
||||
database.addInterval (interval);
|
||||
|
||||
// TODO intervalSummarїze needs to operate on a vector of similar intervals.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue