mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Hopefully this fixes Bev's issue.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -703,8 +703,8 @@ def get_specific_days_stats(results, start_date, days=None, end_date=None):
|
|||||||
raise ValueError("Either days or end_date must be set.")
|
raise ValueError("Either days or end_date must be set.")
|
||||||
|
|
||||||
grouped_results = {date: [] for date in gen_range} | {
|
grouped_results = {date: [] for date in gen_range} | {
|
||||||
day.date(): [notification_type, status, day, count]
|
day: [row for row in results if row.day.date() == day]
|
||||||
for notification_type, status, day, count in results
|
for day in {item.day.date() for item in results}
|
||||||
}
|
}
|
||||||
|
|
||||||
stats = {
|
stats = {
|
||||||
|
|||||||
Reference in New Issue
Block a user