[+] FetchLogs prepass

This commit is contained in:
Charles Le Maux 2024-08-15 11:52:18 +02:00
parent 31239201e4
commit 3f332573bf

View File

@ -67,6 +67,10 @@ def fetch_servers(user: UserRecord) -> tuple[HTTPStatus, Union[str, list]]:
return account_create(user) return account_create(user)
def fetch_logs(user: UserRecord, name: str) -> tuple[HTTPStatus, Union[str, None]]:
pass
def account_create(user: UserRecord) -> tuple[HTTPStatus, Union[str, None]]: def account_create(user: UserRecord) -> tuple[HTTPStatus, Union[str, None]]:
if firebase_manager.user_field_exists(user.uid): if firebase_manager.user_field_exists(user.uid):
return HTTPStatus.FORBIDDEN, "User already exists." return HTTPStatus.FORBIDDEN, "User already exists."