Merge pull request #2824 from alphagov/stop-searching-to-field

Stop searching the to field
This commit is contained in:
Chris Hill-Scott
2020-05-05 16:20:17 +01:00
committed by GitHub
2 changed files with 4 additions and 6 deletions

View File

@@ -622,7 +622,6 @@ def dao_get_notifications_by_recipient_or_reference(service_id, search_term, not
filters = [
Notification.service_id == service_id,
or_(
Notification.to.ilike("%{}%".format(search_term)),
Notification.normalised_to.like("%{}%".format(normalised)),
Notification.client_reference.ilike("%{}%".format(search_term)),
),