Bug Fix - ghistory ignoring deletions
- Fixed bug that prevented months with only deletions from being included in the report.
This commit is contained in:
@@ -1142,6 +1142,7 @@ std::string handleReportGHistory (TDB& tdb, T& task, Config& conf)
|
||||
if (task.getStatus () == T::deleted)
|
||||
{
|
||||
epoch = monthlyEpoch (task.getAttribute ("end"));
|
||||
groups[epoch] = 0;
|
||||
|
||||
if (deletedGroup.find (epoch) != deletedGroup.end ())
|
||||
deletedGroup[epoch] = deletedGroup[epoch] + 1;
|
||||
@@ -1151,6 +1152,8 @@ std::string handleReportGHistory (TDB& tdb, T& task, Config& conf)
|
||||
else if (task.getStatus () == T::completed)
|
||||
{
|
||||
epoch = monthlyEpoch (task.getAttribute ("end"));
|
||||
groups[epoch] = 0;
|
||||
|
||||
if (completedGroup.find (epoch) != completedGroup.end ())
|
||||
completedGroup[epoch] = completedGroup[epoch] + 1;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user