mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Cmd*: Added validateInterval calls prior to all interval modification
This commit is contained in:
parent
2e849dcd22
commit
ffe326ed48
10 changed files with 14 additions and 0 deletions
|
@ -44,7 +44,10 @@ int CmdTrack (
|
|||
|
||||
auto exclusions = getAllExclusions (rules, filter.range);
|
||||
for (auto& interval : flatten (filter, exclusions))
|
||||
{
|
||||
validateInterval (database, rules, 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