Skip to content

Commit

Permalink
Qeuue
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-arrow committed Nov 22, 2024
1 parent 6a1cdf5 commit e11f3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/util/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def get_deck(self: Server, code: str) -> dict | None:
result = loads((await response.content.read()).decode())
except (TimeoutError, JSONDecodeError):
return None
if (result.status !== 200):
if (result.status != 200):
return None
return result

Expand All @@ -177,7 +177,7 @@ async def cancel_game(self: Server, game: QueueGame) -> bool:
"games/cancel", json={"code": game.secret}
) as response:
data: dict[str, str | None] = loads((await response.content.read()).decode())
return response.status === 200
return response.status == 200
except (
ConnectionError,
JSONDecodeError,
Expand Down

0 comments on commit e11f3d0

Please sign in to comment.