diff --git a/apps/cli/executables/pexable/ws_annihilator/ws_annihilator/annihilator.py b/apps/cli/executables/pexable/ws_annihilator/ws_annihilator/annihilator.py index 1448d75ea3f9b62f83e69f90375545c7a2fa0342..164772c8c3233bda7114cd90a571a87a16b0749b 100644 --- a/apps/cli/executables/pexable/ws_annihilator/ws_annihilator/annihilator.py +++ b/apps/cli/executables/pexable/ws_annihilator/ws_annihilator/annihilator.py @@ -486,7 +486,7 @@ class CalibrationAnnihilator(WorkflowAnnihilator): :return: a list of directories to clean """ query = f""" - SELECT wr.results_dir + SELECT DISTINCT wr.results_dir FROM workflow_requests wr JOIN capability_executions ce ON ce.current_workflow_request_id = wr.workflow_request_id JOIN capability_requests cr ON cr.capability_request_id = ce.capability_request_id @@ -521,7 +521,7 @@ class ImageAnnihilator(WorkflowAnnihilator): """ # Fetch the completed imaging requests query = f""" - SELECT wr.results_dir + SELECT DISTINCT wr.results_dir FROM workflow_requests wr JOIN capability_executions ce ON ce.current_workflow_request_id = wr.workflow_request_id JOIN capability_requests cr ON cr.capability_request_id = ce.capability_request_id