One thing at a time; remove HSRNUMBER for now

This commit is contained in:
mike cullerton 2021-11-03 12:58:03 -04:00
parent 9c8ae36ba3
commit b03e596dcf
1 changed files with 2 additions and 3 deletions

View File

@ -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):