forked from bton/matekasse
queue erro fixed i hope
This commit is contained in:
parent
e51ee801e7
commit
3c947da209
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue