mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 00:11:16 -05:00
Exclude test keys when searching by recipient
The activity page doesn’t show notifications sent with a test key. However it _does_ when you search by recipient. This is confusing and inconsistent.
This commit is contained in:
@@ -505,7 +505,8 @@ def dao_get_notifications_by_to_field(service_id, search_term, statuses=None):
|
||||
|
||||
filters = [
|
||||
Notification.service_id == service_id,
|
||||
Notification.normalised_to == normalised
|
||||
Notification.normalised_to == normalised,
|
||||
Notification.key_type != KEY_TYPE_TEST,
|
||||
]
|
||||
|
||||
if statuses:
|
||||
|
||||
Reference in New Issue
Block a user