mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-22 02:03:08 +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
2
AUTHORS
2
AUTHORS
|
@ -7,6 +7,7 @@ Contributing Authors:
|
|||
H. İbrahim Güngör
|
||||
Stefan Dorn
|
||||
Michael Greb
|
||||
Benjamin Tegarden
|
||||
|
||||
With thanks to:
|
||||
Eugene Kramer
|
||||
|
@ -24,5 +25,4 @@ With thanks to:
|
|||
Russell Friesenhahn
|
||||
Paolo Marsi
|
||||
Eric Farris
|
||||
Benjamin Tegarden
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
file locking is used.
|
||||
+ Task export feature now includes recurrence information, removes nested
|
||||
quotes, and limits output to pending tasks.
|
||||
+ Task no longer includes deleted tasks in the summary report (thanks to
|
||||
Benjamin Tegarden).
|
||||
|
||||
------ old releases ------------------------------
|
||||
|
||||
|
|
|
@ -132,6 +132,8 @@
|
|||
file locking is used.
|
||||
<li>Task export feature now includes recurrence information, removes nested
|
||||
quotes, and limits output to pending tasks.
|
||||
<li>Task no longer includes deleted tasks in the summary report (thanks to
|
||||
Benjamin Tegarden).
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -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