Bug Fix - ghistory ignoring deletions

- Fixed bug that prevented months with only deletions from being
  included in the report.
This commit is contained in:
Paul Beckingham 2009-05-10 01:03:53 -04:00
parent 08188fb811
commit de4194479a

View file

@ -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