Skip to content

Commit

Permalink
Wrapped a map() in a list().
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Nov 4, 2024
1 parent 0d1545f commit c7751e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_normalizer/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,11 +716,11 @@ async def create_node(canonical_id, equivalent_ids, types, info_contents, includ
for typ in types[canonical_id][::-1]:
if typ in config['preferred_name_boost_prefixes']:
# This is the most specific matching type, so we use this and then break.
possible_labels = map(lambda identifier: identifier.get('l', ''),
possible_labels = list(map(lambda identifier: identifier.get('l', ''),
sort_identifiers_with_boosted_prefixes(
eids,
config['preferred_name_boost_prefixes'][typ]
))
)))

# Add in all the other labels -- we'd still like to consider them, but at a lower priority.
for eid in eids:
Expand Down

0 comments on commit c7751e1

Please sign in to comment.