mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-16 07:33:16 +00:00
fix(servers): hopefully fix moving
This commit is contained in:
parent
92cfd00f93
commit
4aa87edf47
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue