forked from bton/matekasse
This commit is contained in:
parent
998e03534e
commit
cea5f699c8
1 changed files with 4 additions and 0 deletions
4
main.py
4
main.py
|
@ -156,6 +156,7 @@ def request_removetag(data):
|
||||||
if user == [data["data"], "remove", session[id]]:
|
if user == [data["data"], "remove", session[id]]:
|
||||||
socketio.emit("wait", "wait", to=session[id])
|
socketio.emit("wait", "wait", to=session[id])
|
||||||
i = 0
|
i = 0
|
||||||
|
print(session[id])
|
||||||
while finished != [data["data"], "remove", session[id]]:
|
while finished != [data["data"], "remove", session[id]]:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
i += 1
|
i += 1
|
||||||
|
@ -186,8 +187,11 @@ def get_id():
|
||||||
tag_list = c.fetchall()
|
tag_list = c.fetchall()
|
||||||
if users.qsize() > 0:
|
if users.qsize() > 0:
|
||||||
queue_item = users.get()
|
queue_item = users.get()
|
||||||
|
print(queue_item)
|
||||||
user = queue_item[0]
|
user = queue_item[0]
|
||||||
|
print(user)
|
||||||
state = queue_item[1]
|
state = queue_item[1]
|
||||||
|
print(state)
|
||||||
if state == "add":
|
if state == "add":
|
||||||
c.execute(f"INSERT OR IGNORE INTO tags (tagid, userid) VALUES ({tag_id}, {user})")
|
c.execute(f"INSERT OR IGNORE INTO tags (tagid, userid) VALUES ({tag_id}, {user})")
|
||||||
elif state == "remove":
|
elif state == "remove":
|
||||||
|
|
Loading…
Reference in a new issue