Added endpoints for #1006 and #1007

This commit is contained in:
Anastasia Gradova
2024-05-25 20:59:08 -06:00
parent 5cd68e8081
commit 5fbad5bd69
4 changed files with 137 additions and 11 deletions

View File

@@ -113,7 +113,6 @@ def create_empty_monthly_notification_status_stats_dict(year):
def add_monthly_notification_status_stats(data, stats):
for row in stats:
month = row.month.strftime("%Y-%m")
data[month][row.notification_type][row.notification_status] += row.count
data[month][row.notification_type][StatisticsType.REQUESTED] += row.count
return data