Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def login(id, pw):
|
|
47 |
if user_data[id] != pw:
|
48 |
return "fail"
|
49 |
else:
|
50 |
-
live_user[id] =
|
51 |
return "ok"
|
52 |
|
53 |
def chat(name, text):
|
@@ -60,7 +60,7 @@ def chat(name, text):
|
|
60 |
def get_data(name):
|
61 |
for u in live_user.keys():
|
62 |
if u == name:
|
63 |
-
live_user[u]
|
64 |
else:
|
65 |
live_user[u] -= 1
|
66 |
if live_user[u] < 0:
|
|
|
47 |
if user_data[id] != pw:
|
48 |
return "fail"
|
49 |
else:
|
50 |
+
live_user[id] = 50
|
51 |
return "ok"
|
52 |
|
53 |
def chat(name, text):
|
|
|
60 |
def get_data(name):
|
61 |
for u in live_user.keys():
|
62 |
if u == name:
|
63 |
+
live_user[u] = 20
|
64 |
else:
|
65 |
live_user[u] -= 1
|
66 |
if live_user[u] < 0:
|