Complete backend verification: fix syntax errors, create __init__.py files, add setup_db.py, update docker-compose for two PostgreSQL containers

This commit is contained in:
2026-07-18 23:02:44 +00:00
parent 3a70feaba5
commit 02ef8e36bc
27 changed files with 687 additions and 121 deletions
+2 -2
View File
@@ -239,7 +239,7 @@ async def game_websocket_endpoint(websocket: WebSocket, game_id: int):
await room.send_to_player(player_id, {
"type": "pong",
"timestamp": datetime.now().isoformat(),
}))
})
except WebSocketDisconnect:
# Player disconnected
await room.remove_player(player_id)
@@ -297,7 +297,7 @@ async def process_game_command(room: GameRoom, player_id: int, command: dict):
await room.send_to_player(player_id, {
"type": "error",
"message": f"Invalid command type: {cmd_type}",
}))
})
return
# Broadcast command as game event