mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-18 18:43:05 +08:00
allow srot by exec duration
This commit is contained in:
parent
8a2bb7c20a
commit
b7c7712e31
@ -710,9 +710,9 @@ class PromptServer():
|
|||||||
status_filter = None
|
status_filter = None
|
||||||
|
|
||||||
sort_by = query.get('sort', 'created_at')
|
sort_by = query.get('sort', 'created_at')
|
||||||
if sort_by != 'created_at':
|
if sort_by not in {'created_at', 'execution_duration'}:
|
||||||
return web.json_response(
|
return web.json_response(
|
||||||
{"error": "sort must be 'created_at'"},
|
{"error": "sort must be 'created_at' or 'execution_duration'"},
|
||||||
status=400
|
status=400
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user