mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-26 02:11:41 -05:00
Remove the truncate date function for the query.
This commit is contained in:
@@ -254,7 +254,7 @@ def dao_fetch_stats_for_service(service_id):
|
||||
# We want 7 days inclusive
|
||||
start_date = get_london_midnight_in_utc(date.today() - timedelta(days=6))
|
||||
return _stats_for_service_query(service_id).filter(
|
||||
func.date(Notification.created_at) >= start_date
|
||||
Notification.created_at >= start_date
|
||||
).all()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user