Skip to content

Commit

Permalink
update acces to contextForm again
Browse files Browse the repository at this point in the history
  • Loading branch information
James Tessmer committed Oct 8, 2024
1 parent ab7eb47 commit 1d1909a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def upgrade():
mappings = []
for submission_metadata in session.query(SubmissionMetadata):
metadata_submission = submission_metadata.metadata_submission
context_form = metadata_submission.get("contextForm")
context_form = metadata_submission("contextForm",{})

if not context_form.get("awardDoi", None) and context_form.get("datasetDoi", None):
holder = context_form["datasetDoi"]
Expand All @@ -70,7 +70,7 @@ def downgrade():
mappings = []
for submission_metadata in session.query(SubmissionMetadata):
metadata_submission = submission_metadata.metadata_submission
context_form = metadata_submission.get("contextForm")
context_form = metadata_submission.get("contextForm",{})

if not context_form.get("datasetDoi", None) and context_form.get("awardDoi", None):
holder = context_form["awardDoi"]
Expand Down

0 comments on commit 1d1909a

Please sign in to comment.