mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Datafile: Implemented ::getAllIntervals
This commit is contained in:
parent
f2b4cc5873
commit
03e21073fb
1 changed files with 4 additions and 2 deletions
|
@ -68,8 +68,10 @@ std::vector <Interval> Datafile::getAllIntervalsSince (Datetime)
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::vector <Interval> Datafile::getAllIntervals ()
|
std::vector <Interval> Datafile::getAllIntervals ()
|
||||||
{
|
{
|
||||||
// TODO Load data
|
if (! _intervals_loaded)
|
||||||
return {};
|
load_intervals ();
|
||||||
|
|
||||||
|
return _intervals;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue