mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-27 12:16:25 +02:00
CmdDefault: Migrated to intervalSummarize
This commit is contained in:
parent
e6a27b1f72
commit
49f7c08457
2 changed files with 4 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <cmake.h>
|
||||
#include <commands.h>
|
||||
#include <timew.h>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -39,7 +40,7 @@ int CmdDefault (Rules& rules, Database& database)
|
|||
auto interval = database.getLatestInterval ();
|
||||
if (interval.isStarted () && ! interval.isEnded ())
|
||||
std::cout << "\n"
|
||||
<< database.getLatestInterval ().summarize ()
|
||||
<< intervalSummarize (rules, database.getLatestInterval ())
|
||||
<< "\n";
|
||||
else
|
||||
std::cout << "\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue