1
0
Fork 0
forked from bton/matekasse

Added update server side

This commit is contained in:
2000-Trek 2023-06-14 20:58:22 +02:00
parent 4b73ce61d6
commit 5becf30834

View file

@ -224,6 +224,7 @@ def get_id():
c.execute(f"DELETE FROM tags WHERE (tagid = {tag_id} AND userid = {user}) ")
conn.commit()
finished = queue_item
socketio.emit("update", "update")
return make_response("True")
elif tag_list != []:
@ -231,8 +232,9 @@ def get_id():
if users.qsize() == 0:
c.execute(f"UPDATE users SET balance = balance - 1 WHERE id={tag[1]}")
conn.commit()
socketio.emit("update", "update")
return make_response("True")
socketio.emit("update", "update")
return make_response("False")
def main():