Skip to content

Commit

Permalink
Good enough matching, for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Nov 30, 2023
1 parent cb8e6a0 commit ddf1eb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/data/summaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ def _summaries_for_contact(
related_name_sets = list(
self._names_provider.get_related_names(contact.first_name)
)
# No related names? Just use the first name.
if not related_name_sets:
related_name_sets = [frozenset([contact.first_name])]
with sao.Session(self._engine) as session:
for related_name_set in related_name_sets:
stmt = self._contact_stmt(contact, related_name_set)
Expand Down

0 comments on commit ddf1eb3

Please sign in to comment.