X-Git-Url: https://git.auder.net/?p=rpsls-web.git;a=blobdiff_plain;f=server.py;h=f63f6e6df3c3258152c99133b08db8b3f5c91efa;hp=01047a5fac91ae041b32fe93ddacb80285517b27;hb=310a5febf1cbb15fce4238f6193e7a3d7286bdc5;hpb=7cc3b851e57ad68734716dc4f961868872c7d857 diff --git a/server.py b/server.py index 01047a5..f63f6e6 100644 --- a/server.py +++ b/server.py @@ -57,8 +57,8 @@ def login(sid, data): uid = cur.fetchone()[0] else: raise + sio.emit("login", {"name": data, "uid": uid}, room=sid) db_operation(upsert) - sio.emit("login", {"name": data, "uid": uid}, room=sid) @sio.event def seek(sid, data): @@ -112,7 +112,7 @@ static_files = { PORT = getenv('RPSLS_PORT') if PORT is None: - PORT = "8000" + PORT = "8000" #8001 PORT = int(PORT) # Wrap with a WSGI application