From 2a84d5196a403e004d8b104fe6018f819f009384 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Fri, 12 Jun 2020 14:13:27 -0400 Subject: [PATCH] filter, not filter_by --- crc/services/workflow_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crc/services/workflow_service.py b/crc/services/workflow_service.py index 4f67d6af..310bd7fd 100644 --- a/crc/services/workflow_service.py +++ b/crc/services/workflow_service.py @@ -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()