mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-23 03:26:53 +08:00
Refactor:better handle list agent api desc param (#12733)
### What problem does this PR solve? better handle list agent api desc param ### Type of change - [x] Refactoring
This commit is contained in:
@ -51,7 +51,7 @@ def list_agents(tenant_id):
|
||||
page_number = int(request.args.get("page", 1))
|
||||
items_per_page = int(request.args.get("page_size", 30))
|
||||
order_by = request.args.get("orderby", "update_time")
|
||||
if request.args.get("desc") == "False" or request.args.get("desc") == "false":
|
||||
if str(request.args.get("desc","false")).lower() == "false":
|
||||
desc = False
|
||||
else:
|
||||
desc = True
|
||||
|
||||
Reference in New Issue
Block a user