From 634def3b913bcefafbb9df6d9627331cdf0944ec Mon Sep 17 00:00:00 2001 From: Maurane GLAUDE Date: Tue, 8 Oct 2024 11:40:40 +0200 Subject: [PATCH] style(storage): reformat code --- antarest/study/storage/auto_archive_service.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/antarest/study/storage/auto_archive_service.py b/antarest/study/storage/auto_archive_service.py index b293fc1207..c9c1307604 100644 --- a/antarest/study/storage/auto_archive_service.py +++ b/antarest/study/storage/auto_archive_service.py @@ -39,16 +39,14 @@ def __init__(self, study_service: StudyService, config: Config): def _try_archive_studies(self) -> None: """ - Archive old studies - Clear old variant snapshots + Archive old studies + Clear old variant snapshots """ old_date = datetime.datetime.utcnow() - datetime.timedelta(days=self.config.storage.auto_archive_threshold_days) with db(): # in this part full `Read` rights over studies are granted to this function studies: t.Sequence[Study] = self.study_service.repository.get_all( - study_filter=StudyFilter( - managed=True, - access_permissions=AccessPermissions(is_admin=True)) + study_filter=StudyFilter(managed=True, access_permissions=AccessPermissions(is_admin=True)) ) # list of study IDs and boolean indicating if it's a raw study (True) or a variant (False) study_ids_to_archive = [