From c7751e1361affd0cd1295daa52c3f82a480755cc Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Mon, 4 Nov 2024 18:29:22 -0500 Subject: [PATCH] Wrapped a map() in a list(). --- node_normalizer/normalizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_normalizer/normalizer.py b/node_normalizer/normalizer.py index bc4cdf5..d3b25d8 100644 --- a/node_normalizer/normalizer.py +++ b/node_normalizer/normalizer.py @@ -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: