turned it on
This commit is contained in:
parent
0ee377dda3
commit
29798f1ba6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue