Corrected test cases for new stats endpoints

This commit is contained in:
Anastasia Gradova
2024-06-24 17:58:37 -06:00
parent 16555ab0e2
commit b2e5522d09
3 changed files with 161 additions and 120 deletions

View File

@@ -86,7 +86,7 @@ def fetch_notification_status_for_service_by_month(start_date, end_date, service
db.session.query(
func.date_trunc("month", NotificationAllTimeView.created_at).label("month"),
NotificationAllTimeView.notification_type,
NotificationAllTimeView.status.label('notification_status'),
NotificationAllTimeView.status.label("notification_status"),
func.count(NotificationAllTimeView.id).label("count"),
)
.filter(