Merge pull request #2292 from alphagov/exclude_cancelled_from_requested

Remove cancelled from requested statuses in service statistics
This commit is contained in:
Pea (Malgorzata Tyczynska)
2019-01-11 15:01:20 +00:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -84,7 +84,8 @@ def create_zeroed_stats_dicts():
def _update_statuses_from_row(update_dict, row):
update_dict['requested'] += row.count
if row.status != 'cancelled':
update_dict['requested'] += row.count
if row.status in ('delivered', 'sent'):
update_dict['delivered'] += row.count
elif row.status in (