1
0
Fork 0
forked from bton/matekasse
This commit is contained in:
2000-Trek 2023-06-09 23:28:12 +02:00
parent 998e03534e
commit cea5f699c8

View file

@ -156,6 +156,7 @@ def request_removetag(data):
if user == [data["data"], "remove", session[id]]:
socketio.emit("wait", "wait", to=session[id])
i = 0
print(session[id])
while finished != [data["data"], "remove", session[id]]:
time.sleep(1)
i += 1
@ -186,8 +187,11 @@ def get_id():
tag_list = c.fetchall()
if users.qsize() > 0:
queue_item = users.get()
print(queue_item)
user = queue_item[0]
print(user)
state = queue_item[1]
print(state)
if state == "add":
c.execute(f"INSERT OR IGNORE INTO tags (tagid, userid) VALUES ({tag_id}, {user})")
elif state == "remove":