From 56a208601edddcb514d6407b912894e0f6ca69d3 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Tue, 9 Jul 2024 14:12:46 -0400 Subject: [PATCH] Hopefully this fixes Bev's issue. Signed-off-by: Cliff Hill --- app/dao/services_dao.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dao/services_dao.py b/app/dao/services_dao.py index 6fa663341..550a7ab94 100644 --- a/app/dao/services_dao.py +++ b/app/dao/services_dao.py @@ -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.") grouped_results = {date: [] for date in gen_range} | { - day.date(): [notification_type, status, day, count] - for notification_type, status, day, count in results + day: [row for row in results if row.day.date() == day] + for day in {item.day.date() for item in results} } stats = {