fix the problem of ruff of github

This commit is contained in:
gayshub
2023-12-15 17:48:20 +08:00
parent 1242ba08e1
commit d859de37d9
3 changed files with 4 additions and 4 deletions

View File

@@ -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)