Skip to content

Commit

Permalink
add pmid in external ids
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjeangirard committed Jul 5, 2023
1 parent d72b584 commit 24e7d02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pubmed/server/main/pubmed_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def parse_pubmed(notice: dict) -> Union[bool, dict]:
pubmed_id = pubmed_id_elt.text
else:
pmid = notice.get('pmid')
res['external_ids'] = [{'id_type': 'pmid', 'id_value': pmid}]
logger.warning(f'No pubmed element for pmid {pmid}?')
logger.warning(x)
return False
Expand Down

0 comments on commit 24e7d02

Please sign in to comment.