Skip to content

Commit

Permalink
additiona places it was left
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai committed Dec 19, 2024
1 parent d64e5b4 commit 77f3e72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/celery/process_pinpoint_receipts_tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timezone
from typing import Union

from flask import current_app, json
Expand Down Expand Up @@ -120,7 +120,7 @@ def process_pinpoint_results(self, response):
if not annual_limit_client.was_seeded_today(service_id):
annual_limit_client.set_seeded_at(service_id)
notifications_to_seed = fetch_notification_status_for_service_for_day(
convert_utc_to_local_timezone(datetime.utcnow()),
datetime.now(timezone.utc),
service_id=service_id,
)
annual_limit_client.seed_annual_limit_notifications(
Expand Down
4 changes: 2 additions & 2 deletions app/celery/process_ses_receipts_tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timezone

from flask import current_app, json
from notifications_utils.statsd_decorators import statsd
Expand Down Expand Up @@ -97,7 +97,7 @@ def process_ses_results(self, response): # noqa: C901
if not annual_limit_client.was_seeded_today(service_id):
annual_limit_client.set_seeded_at(service_id)
notifications_to_seed = fetch_notification_status_for_service_for_day(
convert_utc_to_local_timezone(datetime.utcnow()),
convert_utc_to_local_timezone(datetime.now(timezone.utc)),
service_id=service_id,
)
annual_limit_client.seed_annual_limit_notifications(
Expand Down
4 changes: 2 additions & 2 deletions app/celery/process_sns_receipts_tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timezone

from flask import current_app, json
from notifications_utils.statsd_decorators import statsd
Expand Down Expand Up @@ -77,7 +77,7 @@ def process_sns_results(self, response):
if not annual_limit_client.was_seeded_today(service_id):
annual_limit_client.set_seeded_at(service_id)
notifications_to_seed = fetch_notification_status_for_service_for_day(
convert_utc_to_local_timezone(datetime.utcnow()),
convert_utc_to_local_timezone(datetime.now(timezone.utc)),
service_id=service_id,
)
annual_limit_client.seed_annual_limit_notifications(
Expand Down

0 comments on commit 77f3e72

Please sign in to comment.