Remove scalars from execute and add test coverage

This commit is contained in:
Andrew Shumway
2024-11-07 09:45:56 -07:00
parent 165042b37c
commit 6df7a218a7
2 changed files with 41 additions and 1 deletions

View File

@@ -474,7 +474,7 @@ def dao_fetch_stats_for_service_from_days(service_id, start_date, end_date):
func.date_trunc("day", NotificationAllTimeView.created_at),
)
)
return db.session.execute(stmt).scalars().all()
return db.session.execute(stmt).all()
def dao_fetch_stats_for_service_from_days_for_user(