From 948bb17a6c292c2ddd39ec39b01f40721010e3de Mon Sep 17 00:00:00 2001 From: Andrew Shumway Date: Fri, 27 Oct 2023 10:26:52 -0600 Subject: [PATCH] Removed history count from total count --- app/dao/notifications_dao.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/dao/notifications_dao.py b/app/dao/notifications_dao.py index 5d9dc2e33..2d5df12ee 100644 --- a/app/dao/notifications_dao.py +++ b/app/dao/notifications_dao.py @@ -192,9 +192,7 @@ def dao_get_notification_count_for_job_id(*, job_id): def dao_get_notification_count_for_service(*, service_id): notification_count = Notification.query.filter_by(service_id=service_id).count() - notification_history_count = NotificationHistory.query.filter_by(service_id=service_id).count() - total_count = notification_count + notification_history_count - return total_count + return notification_count def get_notification_with_personalisation(service_id, notification_id, key_type):