Skip to content

Commit

Permalink
Hide determination outcomes for submissions with old determination form
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsajan0 committed Jan 30, 2025
1 parent 44febe5 commit 2b8d96a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions hypha/apply/funds/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,17 @@ def check_submissions_same_determination_form(submissions):
"""

same_form = True
# check form id
determination_form_ids = [
submission.get_from_parent("determination_forms").first().id
for submission in submissions
]
try:
# check form id
determination_form_ids = [
submission.get_from_parent("determination_forms").first().id
for submission in submissions
]
except Exception:
# if there is a form id error, handles old determination form issues
same_form = False
return same_form

if any(d_id != determination_form_ids[0] for d_id in determination_form_ids):
same_form = False
return same_form

0 comments on commit 2b8d96a

Please sign in to comment.