mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdTrack: validate must occur before flattening
This commit is contained in:
parent
0d5818d226
commit
eab29cf594
1 changed files with 3 additions and 3 deletions
|
@ -42,12 +42,12 @@ int CmdTrack (
|
|||
! filter.range.is_ended ())
|
||||
return CmdStart (cli, rules, database);
|
||||
|
||||
// Validation must occur before flattening.
|
||||
validate (cli, rules, database, filter);
|
||||
|
||||
auto exclusions = getAllExclusions (rules, filter.range);
|
||||
for (auto& interval : flatten (filter, exclusions))
|
||||
{
|
||||
validate (cli, rules, database, interval);
|
||||
database.addInterval (interval);
|
||||
}
|
||||
|
||||
if (rules.getBoolean ("verbose"))
|
||||
std::cout << intervalSummarize (database, rules, filter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue