Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -393,7 +393,7 @@ async def join_game(request: Request):
|
|
| 393 |
if game.get("gameStarted"):
|
| 394 |
raise HTTPException(status_code=400, detail="Cannot join a game that has already started.")
|
| 395 |
|
| 396 |
-
formatted_name =
|
| 397 |
|
| 398 |
existing_names = [name.lower() for name in game["permissions"].keys()]
|
| 399 |
if formatted_name.lower() in existing_names:
|
|
|
|
| 393 |
if game.get("gameStarted"):
|
| 394 |
raise HTTPException(status_code=400, detail="Cannot join a game that has already started.")
|
| 395 |
|
| 396 |
+
formatted_name = player_name
|
| 397 |
|
| 398 |
existing_names = [name.lower() for name in game["permissions"].keys()]
|
| 399 |
if formatted_name.lower() in existing_names:
|