1
0
Fork 0
forked from bton/matekasse
This commit is contained in:
bton 2024-03-20 20:01:00 +01:00
parent fbe6b45050
commit 404e292450

View file

@ -289,7 +289,8 @@ 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")
return make_response(json.dumps({"mode":"balance", "username":user[1], "balance":user_new[2]})) c.execute("SELECT * FROM useres WHERE id?",[userid])
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"}))