mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 23:41:17 -05:00
Removed history count from total count
This commit is contained in:
committed by
Carlo Costino
parent
9444310d4b
commit
948bb17a6c
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user