From 9d4304352c5d937144192b9e82c39294e038899d Mon Sep 17 00:00:00 2001 From: Kial Jinnah Date: Fri, 6 Oct 2023 10:56:10 -0700 Subject: [PATCH] cleanup Signed-off-by: Kial Jinnah --- search-api/src/search_api/resources/v1/internal/update_solr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search-api/src/search_api/resources/v1/internal/update_solr.py b/search-api/src/search_api/resources/v1/internal/update_solr.py index ac269bb..ed5cbfc 100644 --- a/search-api/src/search_api/resources/v1/internal/update_solr.py +++ b/search-api/src/search_api/resources/v1/internal/update_solr.py @@ -120,7 +120,7 @@ def get_business_name(business: Dict[str, str]) -> str: alternate_names = business['alternateNames'] if len(alternate_names) > 1: current_app.logger.error('Business has more than one operating name: %s', business['identifier']) - return alternate_names[0]['operatingName'] + return alternate_names[0]['operatingName'].strip() def get_party_name(officer: Dict[str, str]) -> str: """Return the parsed name of the party in the given doc info."""