projects
/
rpsls-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[rpsls-web.git]
/
server.py
diff --git
a/server.py
b/server.py
index
01047a5
..
f63f6e6
100644
(file)
--- a/
server.py
+++ b/
server.py
@@
-57,8
+57,8
@@
def login(sid, data):
uid = cur.fetchone()[0]
else:
raise
uid = cur.fetchone()[0]
else:
raise
+ sio.emit("login", {"name": data, "uid": uid}, room=sid)
db_operation(upsert)
db_operation(upsert)
- sio.emit("login", {"name": data, "uid": uid}, room=sid)
@sio.event
def seek(sid, data):
@sio.event
def seek(sid, data):
@@
-112,7
+112,7
@@
static_files = {
PORT = getenv('RPSLS_PORT')
if PORT is None:
PORT = getenv('RPSLS_PORT')
if PORT is None:
- PORT = "8000"
+ PORT = "8000"
#8001
PORT = int(PORT)
# Wrap with a WSGI application
PORT = int(PORT)
# Wrap with a WSGI application