Rename function to make it consistent

This is consistent with the new "on_date" function. It was going
off the edge of my screen before in some parts of the code.
This commit is contained in:
Ben Thorner
2022-01-24 15:54:37 +00:00
parent 1213463b8e
commit 7f4b140f97
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ from app.dao.jobs_dao import (
from app.dao.notifications_dao import (
dao_get_notifications_processing_time_stats,
dao_timeout_notifications,
get_service_ids_that_have_notifications_from_before_timestamp,
get_service_ids_with_notifications_before,
move_notifications_to_notification_history,
)
from app.dao.service_data_retention_dao import (
@@ -107,7 +107,7 @@ def _delete_notifications_older_than_retention_by_type(notification_type):
# get a list of all service ids that we'll need to delete for. Typically that might only be 5% of services.
# This query takes a couple of mins to run.
service_ids_that_have_sent_notifications_recently = get_service_ids_that_have_notifications_from_before_timestamp(
service_ids_that_have_sent_notifications_recently = get_service_ids_with_notifications_before(
notification_type,
seven_days_ago
)