Skip to content

Commit

Permalink
curation: rules: funding failsafe
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Ioannidis <a.ioannidis.pan@gmail.com>
  • Loading branch information
yashlamba and slint authored Dec 6, 2024
1 parent cf2821c commit a2a1ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/zenodo_rdm/curation/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def award_acronym_in_description(record):
if not description:
return False

funding = record.metadata["funding"]
funding = record.metadata.get("funding", [])
for f in funding:
if f["funder"]["id"] == "00k4n6c32":
if award_id := f.get("award", {}).get("id"):
Expand Down

0 comments on commit a2a1ee6

Please sign in to comment.