Skip to content

Commit

Permalink
Fix dict lookup in MSNET id script
Browse files Browse the repository at this point in the history
  • Loading branch information
michamos committed Sep 28, 2023
1 parent 40dd4c3 commit 4b2042d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/msnet-add-id/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AddMsnetIds(SearchCheckDo):

@staticmethod
def check(record, logger, state):
return record["control_number"] in MSNET_IDS and not any(
return str(record["control_number"]) in MSNET_IDS and not any(
id_["schema"] == "MSNET"
for id_ in record.get("external_system_identifiers", [])
)
Expand Down

0 comments on commit 4b2042d

Please sign in to comment.