mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-11 09:27:56 -04:00
Merge pull request #1194 from alphagov/no-test-key-search
Exclude test keys when searching by recipient
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