"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "66387429f04be1c07115889077e11d2be43c099d"
Commit 997dd1b1 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix queue delete.

parent c5c0ea66
...@@ -336,9 +336,9 @@ class PromptServer(): ...@@ -336,9 +336,9 @@ 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)
@routes.post("/interrupt") @routes.post("/interrupt")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment