mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
helper: Identified missing split functionality
This commit is contained in:
parent
4462e091c5
commit
fe60f5ccfe
1 changed files with 6 additions and 2 deletions
|
@ -326,9 +326,13 @@ Interval getLatestInterval (Database& database)
|
||||||
Interval i;
|
Interval i;
|
||||||
auto lastLine = database.lastLine ();
|
auto lastLine = database.lastLine ();
|
||||||
if (lastLine != "")
|
if (lastLine != "")
|
||||||
|
{
|
||||||
i.initialize (lastLine);
|
i.initialize (lastLine);
|
||||||
|
if (! i.range.ended ())
|
||||||
// TODO Mask i against timeline. It's easy to say that.
|
{
|
||||||
|
// TODO An open interval needs to be split against all exclusions.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue