london → local

This commit is contained in:
stvnrlly
2022-11-16 14:11:52 -05:00
parent 052f911ca8
commit e6d30394ba
3 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ from app.models import (
)
from app.utils import (
get_local_midnight_in_utc,
get_london_month_from_utc_column,
get_local_month_from_utc_column,
midnight_n_days_ago,
)
@@ -360,7 +360,7 @@ def fetch_monthly_template_usage_for_service(start_date, end_date, service_id):
if start_date <= datetime.utcnow() <= end_date:
today = get_local_midnight_in_utc(datetime.utcnow())
month = get_london_month_from_utc_column(Notification.created_at)
month = get_local_month_from_utc_column(Notification.created_at)
stats_for_today = db.session.query(
Notification.template_id.label('template_id'),