setting many=True didn't work here, so I wrapped the result in a list.

This commit is contained in:
mike cullerton 2021-11-09 09:31:53 -05:00
parent d8c2aee19e
commit 6de57c4e89

View File

@ -27,7 +27,7 @@ def sponsors(studyid):
def get_study_details(studyid):
details = session.query(StudyDetails).filter(StudyDetails.STUDYID == studyid).first()
return StudyDetailsSchema().dump(details)
return [StudyDetailsSchema().dump(details)]
def check_study(studyid):