mirror of
https://github.com/GSA/notifications-api.git
synced 2026-04-22 10:20:17 -04:00
migrate bst_date to local_date
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user