mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 00:41:35 -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):
|
def dao_get_notification_count_for_service(*, service_id):
|
||||||
notification_count = Notification.query.filter_by(service_id=service_id).count()
|
notification_count = Notification.query.filter_by(service_id=service_id).count()
|
||||||
notification_history_count = NotificationHistory.query.filter_by(service_id=service_id).count()
|
return notification_count
|
||||||
total_count = notification_count + notification_history_count
|
|
||||||
return total_count
|
|
||||||
|
|
||||||
|
|
||||||
def get_notification_with_personalisation(service_id, notification_id, key_type):
|
def get_notification_with_personalisation(service_id, notification_id, key_type):
|
||||||
|
|||||||
Reference in New Issue
Block a user