mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 00:34:44 +00:00
Use the new schema
This commit is contained in:
parent
55fd3ec59a
commit
41ffb11a5a
@ -2,12 +2,12 @@ from pb import session
|
||||
from pb.models import Investigator, InvestigatorSchema, IRBInfo, IRBInfoSchema, \
|
||||
IRBStatus, IRBStatusSchema, RequiredDocument, RequiredDocumentSchema, \
|
||||
Study, StudySchema, StudyDetails, StudyDetailsSchema, \
|
||||
StudySponsor, StudySponsorSchema
|
||||
StudySponsor, StudySponsorSchema, CreatorStudySchema
|
||||
|
||||
|
||||
def get_user_studies(uva_id):
|
||||
studies = session.query(Study).filter(Study.NETBADGEID == uva_id).all()
|
||||
return StudySchema(many=True).dump(studies)
|
||||
return CreatorStudySchema(many=True).dump(studies)
|
||||
|
||||
|
||||
def required_docs(studyid):
|
||||
|
Loading…
x
Reference in New Issue
Block a user