Skip to content

Commit

Permalink
update map to list comprehension for typechecking
Browse files Browse the repository at this point in the history
  • Loading branch information
James Tessmer committed Oct 8, 2024
1 parent c09a257 commit 10119f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def downgrade():

if not context_form.get("datasetDoi", None) and context_form.get("awardDoi", None):
holder = context_form["awardDoi"]
context_form["datasetDoi"] = ",".join(map(str, holder))
context_form["datasetDoi"] = ','.join([item] for item in holder)
context_form.pop("awardDoi", None)
mappings.append({"id": submission_metadata.id, "metadata_submission": metadata_submission})

Expand Down

0 comments on commit 10119f8

Please sign in to comment.