filter, not filter_by
This commit is contained in:
parent
e3126620b3
commit
2a84d5196a
|
@ -58,7 +58,7 @@ class WorkflowService(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def delete_test_data():
|
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)
|
StudyService.delete_study(study.id)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue