aboutsummaryrefslogtreecommitdiffstats
path: root/modules/progress.py
diff options
context:
space:
mode:
authorgayshub <zhangxianglei1234@gmail.com>2023-12-15 09:48:20 +0000
committergayshub <zhangxianglei1234@gmail.com>2023-12-15 09:48:20 +0000
commitd859de37d9ec10cb6c804226328a11c87c444852 (patch)
tree42f0ba33659e1012c7339704dac6a890e2e24e60 /modules/progress.py
parent1242ba08e19f3d317bdc5924db2b73d0c9569a7f (diff)
downloadstable-diffusion-webui-gfx803-d859de37d9ec10cb6c804226328a11c87c444852.tar.gz
stable-diffusion-webui-gfx803-d859de37d9ec10cb6c804226328a11c87c444852.tar.bz2
stable-diffusion-webui-gfx803-d859de37d9ec10cb6c804226328a11c87c444852.zip
fix the problem of ruff of github
Diffstat (limited to 'modules/progress.py')
-rw-r--r--modules/progress.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/progress.py b/modules/progress.py
index 553866db..6946fb1b 100644
--- a/modules/progress.py
+++ b/modules/progress.py
@@ -78,7 +78,7 @@ def setup_progress_api(app):
return app.add_api_route("/internal/progress", progressapi, methods=["POST"], response_model=ProgressResponse)
def get_pending_tasks():
- pending_tasks_ids = [x for x in pending_tasks]
+ pending_tasks_ids = list(pending_tasks)
pending_len = len(pending_tasks_ids)
return PendingTasksResponse(size=pending_len, tasks=pending_tasks_ids)