Updated BE code to breakdown stats by hour instead of day

This commit is contained in:
alexjanousekGSA
2025-03-18 11:07:32 -04:00
parent d285bd9e26
commit 5d1e758e57
3 changed files with 51 additions and 256 deletions

View File

@@ -282,10 +282,12 @@ def get_service_statistics_for_specific_days_by_user(
service_id, start_date, end_date, user_id
)
stats = get_specific_days_stats(
hours = days * 24
stats = get_specific_hours_stats(
results,
start_date,
days=days,
hours=hours,
total_notifications=total_notifications,
)
return stats