1
0
Fork 0
forked from bton/matekasse

queue erro fixed i hope

This commit is contained in:
2000-Trek 2023-06-07 20:30:31 +02:00
parent e51ee801e7
commit 3c947da209

View file

@ -96,6 +96,7 @@ def request_addtag(data):
global finished
if len(users.queue) > 0:
user = users.queue[len(users.queue) - 1]
print(user)
if user == data["data"]:
socketio.emit("wait", "wait")
i = 0
@ -104,7 +105,6 @@ def request_addtag(data):
i += 1
if i > 20:
socketio.emit("error", "timeout")
nothing = users.get()
break
else:
finished = None