Fix queue delete.
This commit is contained in:
parent
c5c0ea666f
commit
997dd1b131
|
@ -336,7 +336,7 @@ class PromptServer():
|
||||||
if "delete" in json_data:
|
if "delete" in json_data:
|
||||||
to_delete = json_data['delete']
|
to_delete = json_data['delete']
|
||||||
for id_to_delete in to_delete:
|
for id_to_delete in to_delete:
|
||||||
delete_func = lambda a: a[1] == int(id_to_delete)
|
delete_func = lambda a: a[1] == id_to_delete
|
||||||
self.prompt_queue.delete_queue_item(delete_func)
|
self.prompt_queue.delete_queue_item(delete_func)
|
||||||
|
|
||||||
return web.Response(status=200)
|
return web.Response(status=200)
|
||||||
|
|
Loading…
Reference in New Issue