Fixing an error that would prevent the correct counts from displaying if the record didn't come back from the protcol builder.

This commit is contained in:
Dan Funk 2020-04-07 14:14:43 -04:00
parent c7a18709ee
commit 9bf5c9e727
1 changed files with 1 additions and 1 deletions

View File

@ -57,10 +57,10 @@ For example:
pb_data = next((item for item in pb_docs if int(item.AUXDOCID) == int(required_doc['Id'])), None)
except:
pb_data = None
required_doc['count'] = self.get_count(study_id, code)
required_doc['required'] = False
if pb_data:
required_doc['required'] = True
required_doc['count'] = self.get_count(study_id, code)
required_docs[code] = required_doc
return required_docs