Sets PB status to Active by default

This commit is contained in:
Aaron Louie 2020-07-01 11:01:36 -04:00
parent 49a4670b64
commit 340ae68eed
1 changed files with 1 additions and 3 deletions

View File

@ -31,10 +31,8 @@ class StudyModel(db.Model):
self.title = pbs.TITLE self.title = pbs.TITLE
self.user_uid = pbs.NETBADGEID self.user_uid = pbs.NETBADGEID
self.last_updated = pbs.DATE_MODIFIED self.last_updated = pbs.DATE_MODIFIED
self.protocol_builder_status = ProtocolBuilderStatus.INCOMPLETE
if pbs.Q_COMPLETE: self.protocol_builder_status = ProtocolBuilderStatus.ACTIVE
self.protocol_builder_status = ProtocolBuilderStatus.ACTIVE
if pbs.HSRNUMBER: if pbs.HSRNUMBER:
self.protocol_builder_status = ProtocolBuilderStatus.OPEN self.protocol_builder_status = ProtocolBuilderStatus.OPEN
if self.on_hold: if self.on_hold: