mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 16:31:15 -05:00
Update the dao_get_organisation_by_email_address to ignore .gsi in the email address.
This commit is contained in:
@@ -28,7 +28,7 @@ def dao_get_organisation_by_id(organisation_id):
|
||||
|
||||
def dao_get_organisation_by_email_address(email_address):
|
||||
|
||||
email_address = email_address.lower()
|
||||
email_address = email_address.lower().replace('.gsi.gov.uk', '.gov.uk')
|
||||
|
||||
for domain in Domain.query.order_by(func.char_length(Domain.domain).desc()).all():
|
||||
|
||||
|
||||
Reference in New Issue
Block a user