mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
[~] Simple type fix
This commit is contained in:
parent
8d5993e84b
commit
8147d5e01a
@ -124,7 +124,7 @@ def fetch_players_status(user: UserRecord, name: str) -> tuple[HTTPStatus, Union
|
|||||||
def fetch_dir_content(user: UserRecord, name: str) -> tuple[HTTPStatus, Union[str, list]]:
|
def fetch_dir_content(user: UserRecord, name: str) -> tuple[HTTPStatus, Union[str, list]]:
|
||||||
user_id: str = user.uid
|
user_id: str = user.uid
|
||||||
server_path: str = f"users/{user_id}/{name}/"
|
server_path: str = f"users/{user_id}/{name}/"
|
||||||
dirs: dict[str, [str, str]] = {
|
dirs: dict[str, list[str]] = {
|
||||||
'plugins': ['plugins', '.jar'],
|
'plugins': ['plugins', '.jar'],
|
||||||
'datapack' : ['world/datapacks', '.zip'],
|
'datapack' : ['world/datapacks', '.zip'],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user