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 committed Aug 1, 2023
1 parent 72bf5ca commit 38f61eb
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 @@ -1221,7 +1221,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 @@ -2166,7 +2166,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(
Expand Down

0 comments on commit 38f61eb

Please sign in to comment.