Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
997dd1b1
"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "66387429f04be1c07115889077e11d2be43c099d"
Commit
997dd1b1
authored
May 13, 2023
by
comfyanonymous
Browse files
Fix queue delete.
parent
c5c0ea66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server.py
server.py
+2
-2
No files found.
server.py
View file @
997dd1b1
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment