migrate bst_date to local_date

This commit is contained in:
stvnrlly
2022-11-21 11:49:59 -05:00
parent 99de747a36
commit 9e7ee1c0f8
39 changed files with 315 additions and 315 deletions

View File

@@ -9,14 +9,14 @@ from app.dao.notifications_dao import (
from app.utils import get_local_midnight_in_utc
def send_processing_time_to_performance_platform(bst_date):
start_time = get_local_midnight_in_utc(bst_date)
end_time = get_local_midnight_in_utc(bst_date + timedelta(days=1))
def send_processing_time_to_performance_platform(local_date):
start_time = get_local_midnight_in_utc(local_date)
end_time = get_local_midnight_in_utc(local_date + timedelta(days=1))
send_processing_time_for_start_and_end(start_time, end_time, bst_date)
send_processing_time_for_start_and_end(start_time, end_time, local_date)
def send_processing_time_for_start_and_end(start_time, end_time, bst_date):
def send_processing_time_for_start_and_end(start_time, end_time, local_date):
result = dao_get_total_notifications_sent_per_day_for_performance_platform(start_time, end_time)
current_app.logger.info(