This commit is contained in:
2025-05-09 05:38:29 +02:00
parent c56bf4fb49
commit ee40c905d4
15 changed files with 427 additions and 3 deletions
+6
View File
@@ -42,6 +42,12 @@ class UserService(BaseService):
def get_admin_uids(self):
return self.mapper.get_admin_uids()
async def get_repository_path(self, user_uid):
path = pathlib.Path(f"./drive/repositories/{user_uid}")
if not path.exists():
return None
return path
async def get_static_path(self, user_uid):
path = pathlib.Path(f"./drive/{user_uid}/snek/static")
if not path.exists():