forked from bton/matekasse
Added update server side
This commit is contained in:
parent
4b73ce61d6
commit
5becf30834
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue