Skip to content

Commit

Permalink
use const key
Browse files Browse the repository at this point in the history
  • Loading branch information
mferracc committed Oct 7, 2024
1 parent 357f8e0 commit f35e18e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions back/transcendence_django/back_game/monitor/lobby_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
LOBBY_ID,
OPTIONS,
USER_ID,
IS_PLAYING,
)

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -213,8 +214,8 @@ def get_lobby_from_user_id(self, user_id: int) -> Lobby | None:
async def update_user_playing_status(self, user_id, is_playing):
url = f'https://back-user/user/update_playing_status/'
params = {
'user_id': user_id,
'is_playing': int(is_playing),
USER_ID: user_id,
IS_PLAYING: int(is_playing),
}

async with aiohttp.ClientSession() as session:
Expand Down

0 comments on commit f35e18e

Please sign in to comment.