mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature
- The 'summary' report now uses 'project.indented' format.
This commit is contained in:
parent
adb6785931
commit
a73c711188
3 changed files with 7 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <ViewText.h>
|
||||
#include <Duration.h>
|
||||
#include <text.h>
|
||||
#include <util.h>
|
||||
#include <i18n.h>
|
||||
#include <main.h>
|
||||
#include <CmdSummary.h>
|
||||
|
@ -135,7 +136,10 @@ int CmdSummary::execute (std::string& output)
|
|||
if (countPending[i->first] > 0)
|
||||
{
|
||||
int row = view.addRow ();
|
||||
view.set (row, 0, (i->first == "" ? "(none)" : i->first));
|
||||
view.set (row, 0, (i->first == ""
|
||||
? STRING_CMD_SUMMARY_NONE
|
||||
: indentProject (i->first, " ", '.')));
|
||||
|
||||
view.set (row, 1, countPending[i->first]);
|
||||
if (counter[i->first])
|
||||
view.set (row, 2, Duration ((int) (sumEntry[i->first] / (double)counter[i->first])).format ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue