Skip to content

Commit

Permalink
fix - delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
olfamizen committed Feb 13, 2024
1 parent a0ec27f commit 57e7819
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions antarest/study/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 57e7819

Please sign in to comment.