From 29798f1ba64c795e0ac4d12fb94572aa1b7c9d30 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Tue, 28 Sep 2021 10:16:47 -0400 Subject: [PATCH] turned it on --- crc/services/file_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crc/services/file_service.py b/crc/services/file_service.py index 5e0e4bb7..aea6ba61 100644 --- a/crc/services/file_service.py +++ b/crc/services/file_service.py @@ -562,7 +562,7 @@ class FileService(object): file_models = session.query(FileModel)\ .filter(FileModel.workflow_spec_id == wf_spec_model.id)\ .all() - # current_model = file_models[0] + for file_model in file_models: file_data_models = session.query(FileDataModel)\ .filter(FileDataModel.file_model_id == file_model.id)\ @@ -583,7 +583,7 @@ class FileService(object): saved_models.append(fd_model) continue deleted_models.append(fd_model) - # session.delete(fd_model) + session.delete(fd_model) session.commit() return current_models, saved_models, deleted_models