mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug Fix - summary report included deleted tasks
- Applied patch from Benjamin Tegarden to exclude deleted tasks from the summary report.
This commit is contained in:
parent
bdd1b16ba0
commit
2d2bd47075
4 changed files with 12 additions and 3 deletions
|
@ -496,13 +496,18 @@ std::string handleReportSummary (TDB& tdb, T& task, Config& conf)
|
|||
{
|
||||
T task (completed[i]);
|
||||
std::string project = task.getAttribute ("project");
|
||||
countCompleted[project] = countCompleted[project] + 1;
|
||||
++counter[project];
|
||||
if (task.getStatus () == T::deleted)
|
||||
continue;
|
||||
|
||||
++countCompleted[project];
|
||||
|
||||
time_t entry = ::atoi (task.getAttribute ("entry").c_str ());
|
||||
time_t end = ::atoi (task.getAttribute ("end").c_str ());
|
||||
if (entry && end)
|
||||
{
|
||||
sumEntry[project] = sumEntry[project] + (double) (end - entry);
|
||||
++counter[project];
|
||||
}
|
||||
}
|
||||
|
||||
// Create a table for output.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue