Skip to content

Commit

Permalink
More bugfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Nov 7, 2024
1 parent 3312137 commit 20d1fd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node_normalizer/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,9 @@ async def create_node(app, canonical_id, equivalent_ids, types, info_contents, i
identifiers_with_labels = []
for identifier in eids:
curie = identifier.get('i', '')
identifiers_with_labels, _ = await get_eqids_and_types(app, [curie])
labels = map(lambda ident: ident.get('l', ''), identifiers_with_labels[0])
results, _ = await get_eqids_and_types(app, [curie])
identifiers_with_labels = results[0]
labels = map(lambda ident: ident.get('l', ''), identifiers_with_labels)
if any(map(lambda l: l != '', labels)):
break

Expand Down

0 comments on commit 20d1fd2

Please sign in to comment.