From 8b33fc0f4515bfe4ca2c0a98c98502d7f14fcebf Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Fri, 27 Nov 2020 23:05:09 +0100 Subject: [PATCH] fix max players --- backend/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/__init__.py b/backend/__init__.py index 773c53d..db07c6e 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -19,7 +19,7 @@ games: List[Game] = [] online_players = 0 def advertise_lobbies(): - sio.emit('lobbies', room='lobby', data=[{'name': g.name, 'players': len(g.players), 'locked': g.password != ''} for g in games if not g.started and len(g.players) < 7]) + sio.emit('lobbies', room='lobby', data=[{'name': g.name, 'players': len(g.players), 'locked': g.password != ''} for g in games if not g.started and len(g.players) < 10]) @sio.event def connect(sid, environ):