We now add 2 documents for doc code 39.

This commit is contained in:
mike cullerton 2021-06-24 11:14:38 -04:00
parent e64ad057eb
commit 242668b244

View File

@ -91,6 +91,9 @@ def _update_study(study, form):
if r.checked: if r.checked:
requirement = RequiredDocument(AUXDOCID=r.data, AUXDOC=r.label.text, study=study) requirement = RequiredDocument(AUXDOCID=r.data, AUXDOC=r.label.text, study=study)
db.session.add(requirement) db.session.add(requirement)
if r.data == 39:
requirement_2 = RequiredDocument(AUXDOCID=39, AUXDOC='Consent-Age of Majority Cover Letter', study=study)
db.session.add(requirement_2)
q_data = eval(form.Q_COMPLETE.data) q_data = eval(form.Q_COMPLETE.data)
if q_data: if q_data: