These changes relate to changes in PB Mock ticket 273, where we removed Q_COMPLETE as a column in the PB Mock Study table. It is now a relationship.

Here, we removed Q_COMPLETE from ProtocolBuilderStudy and ProtocolBuilderStudySchema definitions to accommodate the PB Mock changes.

***This push will need to be coordinated with ticket 273***
This commit is contained in:
mike cullerton 2021-04-02 12:01:00 -04:00
parent b5d4df595f
commit d7894f43b6
1 changed files with 2 additions and 3 deletions

View File

@ -41,13 +41,12 @@ class ProtocolBuilderStatus(enum.Enum):
class ProtocolBuilderStudy(object): class ProtocolBuilderStudy(object):
def __init__( def __init__(
self, STUDYID: int, HSRNUMBER: str, TITLE: str, NETBADGEID: str, self, STUDYID: int, HSRNUMBER: str, TITLE: str, NETBADGEID: str,
Q_COMPLETE: bool, DATE_MODIFIED: str DATE_MODIFIED: str
): ):
self.STUDYID = STUDYID self.STUDYID = STUDYID
self.HSRNUMBER = HSRNUMBER self.HSRNUMBER = HSRNUMBER
self.TITLE = TITLE self.TITLE = TITLE
self.NETBADGEID = NETBADGEID self.NETBADGEID = NETBADGEID
self.Q_COMPLETE = Q_COMPLETE
self.DATE_MODIFIED = DATE_MODIFIED self.DATE_MODIFIED = DATE_MODIFIED
@ -56,7 +55,7 @@ class ProtocolBuilderStudySchema(ma.Schema):
model = ProtocolBuilderStudy model = ProtocolBuilderStudy
unknown = INCLUDE unknown = INCLUDE
fields = ["STUDYID", "HSRNUMBER", "TITLE", "NETBADGEID", fields = ["STUDYID", "HSRNUMBER", "TITLE", "NETBADGEID",
"Q_COMPLETE", "DATE_MODIFIED"] "DATE_MODIFIED"]
@post_load @post_load
def make_pbs(self, data, **kwargs): def make_pbs(self, data, **kwargs):