Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Kial Jinnah <kialjinnah@gmail.com>
  • Loading branch information
kialj876 committed Oct 6, 2023
1 parent a1a74e7 commit 9d43043
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_business_name(business: Dict[str, str]) -> str:
alternate_names = business['alternateNames']

Check warning on line 120 in search-api/src/search_api/resources/v1/internal/update_solr.py

View check run for this annotation

Codecov / codecov/patch

search-api/src/search_api/resources/v1/internal/update_solr.py#L119-L120

Added lines #L119 - L120 were not covered by tests
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()

Check warning on line 123 in search-api/src/search_api/resources/v1/internal/update_solr.py

View check run for this annotation

Codecov / codecov/patch

search-api/src/search_api/resources/v1/internal/update_solr.py#L122-L123

Added lines #L122 - L123 were not covered by tests

def get_party_name(officer: Dict[str, str]) -> str:
"""Return the parsed name of the party in the given doc info."""
Expand Down

0 comments on commit 9d43043

Please sign in to comment.