mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdSummary: No longer projects open intervals forward
This commit is contained in:
parent
e7e2dd7341
commit
0a1088f383
1 changed files with 5 additions and 1 deletions
|
@ -74,6 +74,10 @@ int CmdSummary (
|
|||
int row = -1;
|
||||
for (auto& track : subset (day_range, tracked))
|
||||
{
|
||||
// Make sure the track only represents one day.
|
||||
if ((track.range.is_open () && day > Datetime ()))
|
||||
continue;
|
||||
|
||||
row = table.addRow ();
|
||||
|
||||
if (day != previous)
|
||||
|
@ -86,7 +90,7 @@ int CmdSummary (
|
|||
|
||||
// Intersect track with day.
|
||||
auto today = day_range.intersect (track.range);
|
||||
if (track.range.is_open ())
|
||||
if (track.range.is_open () && day <= Datetime ())
|
||||
today.end = Datetime ();
|
||||
|
||||
std::string tags = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue