From 097cf50b37eed1c388084df6baed8688a8f56bc0 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Fri, 14 Jul 2023 10:58:31 +0000 Subject: [PATCH] fix(servers): hopefully fix moving --- selfprivacy_api/services/generic_service_mover.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/selfprivacy_api/services/generic_service_mover.py b/selfprivacy_api/services/generic_service_mover.py index e2b26f4..d858b93 100644 --- a/selfprivacy_api/services/generic_service_mover.py +++ b/selfprivacy_api/services/generic_service_mover.py @@ -35,13 +35,11 @@ class FolderMoveNames(BaseModel): return path.split("/")[-1] @staticmethod - def default_foldermoves(service: Service): - return ( - [ - FolderMoveNames.from_owned_path(folder) - for folder in service.get_owned_folders() - ], - ) + def default_foldermoves(service: Service) -> list[FolderMoveNames]: + return [ + FolderMoveNames.from_owned_path(folder) + for folder in service.get_owned_folders() + ] @huey.task()