mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
- "task stats" now supports recurring tasks.
This commit is contained in:
parent
1712ad2cde
commit
b1aaab0a8e
1 changed files with 3 additions and 0 deletions
|
@ -2790,6 +2790,7 @@ void handleReportStats (const TDB& tdb, T& task, Config& conf)
|
|||
int pendingT = 0;
|
||||
int completedT = 0;
|
||||
int taggedT = 0;
|
||||
int recurringT = 0;
|
||||
float daysPending = 0.0;
|
||||
int descLength = 0;
|
||||
|
||||
|
@ -2800,6 +2801,7 @@ void handleReportStats (const TDB& tdb, T& task, Config& conf)
|
|||
if (it->getStatus () == T::deleted) ++deletedT;
|
||||
if (it->getStatus () == T::pending) ++pendingT;
|
||||
if (it->getStatus () == T::completed) ++completedT;
|
||||
if (it->getStatus () == T::recurring) ++recurringT;
|
||||
|
||||
time_t entry = ::atoi (it->getAttribute ("entry").c_str ());
|
||||
if (entry < earliest) earliest = entry;
|
||||
|
@ -2822,6 +2824,7 @@ void handleReportStats (const TDB& tdb, T& task, Config& conf)
|
|||
}
|
||||
|
||||
std::cout << "Pending " << pendingT << std::endl
|
||||
<< "Recurring " << recurringT << std::endl
|
||||
<< "Completed " << completedT << std::endl
|
||||
<< "Deleted " << deletedT << std::endl
|
||||
<< "Total " << totalT << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue