Skip to content

Commit

Permalink
fix(api): update again(#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
TLAIDI authored and laurent-laporte-pro committed Sep 12, 2023
1 parent 028bfc2 commit 2ef5bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions antarest/study/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ def export_study_flat(
storage = self.storage_service.get_storage(study)
if isinstance(study, RawStudy):
if study.archived:
storage.unarchived(study)
storage.unarchive(study)
try:
return storage.export_study_flat(
path_study=path_study,
Expand Down Expand Up @@ -1883,7 +1883,7 @@ def unarchive(self, uuid: str, params: RequestParameters) -> str:

def unarchive_task(notifier: TaskUpdateNotifier) -> TaskResult:
study_to_archive = self.get_study(uuid)
self.storage_service.raw_study_service.unarchived(study_to_archive)
self.storage_service.raw_study_service.unarchive(study_to_archive)
study_to_archive.archived = False

os.unlink(self.storage_service.raw_study_service.get_archive_path(study_to_archive))
Expand Down

0 comments on commit 2ef5bac

Please sign in to comment.