make sure test keys are filtered out of stats

This commit is contained in:
Leo Hemsted
2018-07-03 10:39:39 +01:00
parent 22496d9161
commit 1589bb58bb
3 changed files with 15 additions and 7 deletions

View File

@@ -92,7 +92,7 @@ def create_empty_monthly_notification_status_stats_dict(year):
# nested dicts - data[month][template type][status] = count
return {
convert_utc_to_bst(start).strftime('%Y-%m'): {
template_type: defaultdict(int)
template_type: {}
for template_type in TEMPLATE_TYPES
}
for start in utc_month_starts