mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Apply exclusions to open interval only within range within interval start and now
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
daec6b1fae
commit
a672fd0647
1 changed files with 6 additions and 3 deletions
|
@ -601,9 +601,12 @@ std::vector <Interval> getTracked (
|
|||
|
||||
if (latest.is_open ())
|
||||
{
|
||||
// Get the set of expanded exclusions that overlap the range defined by the
|
||||
// timeline.
|
||||
auto exclusions = getAllExclusions (rules, filter);
|
||||
// Get the set of expanded exclusions that overlap the range defined by the open interval.
|
||||
Interval exclusion_range {};
|
||||
exclusion_range.start = latest.start;
|
||||
exclusion_range.end = Datetime();
|
||||
|
||||
auto exclusions = getAllExclusions (rules, exclusion_range);
|
||||
if (! exclusions.empty ())
|
||||
{
|
||||
intervals.pop_back ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue