fixed
This commit is contained in:
parent
ed8bd817b7
commit
03654ac4cf
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ def create_app(test_config=None):
|
||||||
change = preis
|
change = preis
|
||||||
db_handler.change_balance(userid, change)
|
db_handler.change_balance(userid, change)
|
||||||
socketio.emit("update", "update")
|
socketio.emit("update", "update")
|
||||||
c.execute("SELECT * FROM useres WHERE id=?",[userid])
|
c.execute("SELECT * FROM users WHERE id=?",[userid])
|
||||||
return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":c.fetchone()[2]}))
|
return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":c.fetchone()[2]}))
|
||||||
else:
|
else:
|
||||||
return make_response(json.dumps({"mode":"error","error":"043"}))
|
return make_response(json.dumps({"mode":"error","error":"043"}))
|
||||||
|
|
Loading…
Reference in a new issue