One thing at a time; remove HSRNUMBER for now
This commit is contained in:
parent
9c8ae36ba3
commit
b03e596dcf
|
@ -41,21 +41,20 @@ class ProtocolBuilderStatus(enum.Enum):
|
|||
class ProtocolBuilderStudy(object):
|
||||
def __init__(
|
||||
self, STUDYID: int, TITLE: str, NETBADGEID: str,
|
||||
DATE_MODIFIED: str, Q_COMPLETE: str=None, HSRNUMBER: str=None
|
||||
DATE_MODIFIED: str, Q_COMPLETE: str=None
|
||||
):
|
||||
self.STUDYID = STUDYID
|
||||
self.TITLE = TITLE
|
||||
self.NETBADGEID = NETBADGEID
|
||||
self.DATE_MODIFIED = DATE_MODIFIED
|
||||
self.Q_COMPLETE = Q_COMPLETE
|
||||
self.HSRNUMBER = HSRNUMBER
|
||||
|
||||
class ProtocolBuilderStudySchema(ma.Schema):
|
||||
class Meta:
|
||||
model = ProtocolBuilderStudy
|
||||
unknown = INCLUDE
|
||||
fields = ["STUDYID", "TITLE", "NETBADGEID",
|
||||
"DATE_MODIFIED", "Q_COMPLETE", "HSRNUMBER"]
|
||||
"DATE_MODIFIED", "Q_COMPLETE"]
|
||||
|
||||
@post_load
|
||||
def make_pbs(self, data, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue