fix(servers): hopefully fix moving

pull/35/head
Houkime 2023-07-14 10:58:31 +00:00 committed by Inex Code
parent c53f35c947
commit 097cf50b37
1 changed files with 5 additions and 7 deletions

View File

@ -35,13 +35,11 @@ class FolderMoveNames(BaseModel):
return path.split("/")[-1] return path.split("/")[-1]
@staticmethod @staticmethod
def default_foldermoves(service: Service): def default_foldermoves(service: Service) -> list[FolderMoveNames]:
return ( return [
[ FolderMoveNames.from_owned_path(folder)
FolderMoveNames.from_owned_path(folder) for folder in service.get_owned_folders()
for folder in service.get_owned_folders() ]
],
)
@huey.task() @huey.task()