Skip to content

Commit

Permalink
Fix script again
Browse files Browse the repository at this point in the history
  • Loading branch information
michamos committed May 3, 2024
1 parent e3cd58b commit 64bee4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/nsr-add-id/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ def check(record, logger, state):
return False
for doi in record.get_value("dois.value", []):
if doi.lower() in NSR_IDS:
state[nsr_id] = NSR_IDS[doi.lower()]
state["nsr_id"] = NSR_IDS[doi.lower()]
return True
return False

@staticmethod
def do(record, logger, state):
record.setdefault(ELEMENT, []).append(
{
"value": NSR_IDS[state[nsr_id]],
"value": NSR_IDS[state["nsr_id"]],
"schema": "NSR",
}
)
Expand Down

0 comments on commit 64bee4d

Please sign in to comment.