ldhldh commited on
Commit
a488bf0
·
verified ·
1 Parent(s): 925b4b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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] = 100
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] += 20
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: