From 76f8f5984ef7693d263d778dc9d55bb469efdd84 Mon Sep 17 00:00:00 2001 From: Kelly McDonald Date: Thu, 19 Aug 2021 10:47:13 -0400 Subject: [PATCH] Fixes #413 Fixes #423 where a library was showing up in a study workflow Alex said this used to work, but I don't see where I ever edited the code that needed a filter. --- crc/services/study_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crc/services/study_service.py b/crc/services/study_service.py index 8a58eb3e..bb4ec86d 100755 --- a/crc/services/study_service.py +++ b/crc/services/study_service.py @@ -464,6 +464,8 @@ class StudyService(object): workflow_models = db.session.query(WorkflowModel). \ join(WorkflowSpecModel). \ filter(WorkflowSpecModel.is_master_spec == False). \ + filter((WorkflowSpecModel.library == False) | \ + (WorkflowSpecModel.library == None)). \ filter(WorkflowModel.study_id == study_id). \ all() workflow_metas = []