mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdDefault: Refactored data I/O
This commit is contained in:
parent
943cfae739
commit
96d49069a2
1 changed files with 3 additions and 2 deletions
|
@ -35,9 +35,10 @@ int CmdDefault (Rules& rules, Database& database)
|
|||
if (rules.getBoolean ("verbose"))
|
||||
{
|
||||
// Load the most recent interval, summarize and display.
|
||||
auto interval = database.getLatestInterval ();
|
||||
auto interval = getLatestInterval (database);
|
||||
|
||||
if (interval.isStarted () && ! interval.isEnded ())
|
||||
std::cout << intervalSummarize (rules, database.getLatestInterval ());
|
||||
std::cout << intervalSummarize (rules, interval);
|
||||
else
|
||||
std::cout << "There is no active time tracking.\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue