diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-16 08:04:59 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-16 08:04:59 +0000 |
commit | 86b3aa94e2d36a4f9d5ef1bb7c6ec995ff8eb517 (patch) | |
tree | 4e90ad58c4c4e71001663b712aea312346a26a00 /modules/progress.py | |
parent | 5b7d86d42b84878743847c9a87c02af3da1a5ebd (diff) | |
download | stable-diffusion-webui-gfx803-86b3aa94e2d36a4f9d5ef1bb7c6ec995ff8eb517.tar.gz stable-diffusion-webui-gfx803-86b3aa94e2d36a4f9d5ef1bb7c6ec995ff8eb517.tar.bz2 stable-diffusion-webui-gfx803-86b3aa94e2d36a4f9d5ef1bb7c6ec995ff8eb517.zip |
rename pending tasks api endpoint to be more in line with others
Diffstat (limited to 'modules/progress.py')
-rw-r--r-- | modules/progress.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/progress.py b/modules/progress.py index 6946fb1b..85255e82 100644 --- a/modules/progress.py +++ b/modules/progress.py @@ -74,9 +74,10 @@ class ProgressResponse(BaseModel): def setup_progress_api(app):
- app.add_api_route("/internal/pendingTasks", get_pending_tasks, methods=["GET"])
+ app.add_api_route("/internal/pending-tasks", get_pending_tasks, methods=["GET"])
return app.add_api_route("/internal/progress", progressapi, methods=["POST"], response_model=ProgressResponse)
+
def get_pending_tasks():
pending_tasks_ids = list(pending_tasks)
pending_len = len(pending_tasks_ids)
|