Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
actually implement raw flag
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnimma committed Mar 17, 2022
1 parent 3c47aa2 commit 916071b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

requirements = ["python-dotenv", "aiohttp", "redis"]

version = "v0.1.1"
version = "v0.1.2"

readme = ""
with open("README.md") as f:
Expand Down
5 changes: 4 additions & 1 deletion trackmania/managers/player_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ async def get_player(player_id: str, raw: bool = False) -> Player | None:
cache_client.set(f"{player_data['name'].lower()}:id", player_id)
cache_client.set(f"{player_id}:username", player_data["name"])

return Player(**player_data)
if not raw:
return Player(**player_data)
else:
return tuple(Player(**player_data), player_resp)


async def search_player(
Expand Down

0 comments on commit 916071b

Please sign in to comment.