filter, not filter_by

This commit is contained in:
Aaron Louie 2020-06-12 14:13:27 -04:00
parent e3126620b3
commit 2a84d5196a
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class WorkflowService(object):
@staticmethod
def delete_test_data():
for study in db.session.query(StudyModel).filter_by(StudyModel.user_uid == "test"):
for study in db.session.query(StudyModel).filter(StudyModel.user_uid == "test"):
StudyService.delete_study(study.id)
db.session.commit()