mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdReportSummary: No longer attempts to render empty results
This commit is contained in:
parent
1b2407e463
commit
cc5115b5d7
1 changed files with 6 additions and 3 deletions
|
@ -117,9 +117,12 @@ int CmdReportSummary (
|
||||||
table.set (table.addRow (), 7, " ", Color ("underline"));
|
table.set (table.addRow (), 7, " ", Color ("underline"));
|
||||||
table.set (table.addRow (), 7, Duration (grand_total).format ());
|
table.set (table.addRow (), 7, Duration (grand_total).format ());
|
||||||
|
|
||||||
std::cout << '\n'
|
if (table.rows () > 2)
|
||||||
<< table.render ()
|
std::cout << '\n'
|
||||||
<< '\n';
|
<< table.render ()
|
||||||
|
<< '\n';
|
||||||
|
else
|
||||||
|
std::cout << "No filtered data found.\n";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue