From 57e7819650b29438affb61ea0cc3b04c1d468f3b Mon Sep 17 00:00:00 2001 From: "olfa.mizen_externe@rte-france.com" Date: Tue, 13 Feb 2024 09:39:43 +0100 Subject: [PATCH] fix - delete commented code --- antarest/study/repository.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/antarest/study/repository.py b/antarest/study/repository.py index 806a99b2f8..1a540786e2 100644 --- a/antarest/study/repository.py +++ b/antarest/study/repository.py @@ -275,9 +275,6 @@ def get_all_raw(self, exists: t.Optional[bool] = None) -> t.Sequence[RawStudy]: def delete(self, id_: str, *ids: str) -> None: ids = (id_,) + ids session = self.session - """for study_id in ids: - study: Study = session.query(Study).get(study_id) - session.delete(study)""" session.query(Study).filter(Study.id.in_(ids)).delete(synchronize_session=False) session.commit()