mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-17 05:07:23 +08:00
Fix: sort instance by create_time desc (#16999)
This commit is contained in:
@@ -578,6 +578,7 @@ def list_provider_instances(tenant_id: str, provider_id_or_name: str):
|
||||
if not instance_objs:
|
||||
return True, []
|
||||
instances = []
|
||||
instance_objs.sort(key=lambda x: x.create_time, reverse=True)
|
||||
for instance_obj in instance_objs:
|
||||
extra_fields = json.loads(instance_obj.extra) if instance_obj.extra else {}
|
||||
instances.append(
|
||||
|
||||
Reference in New Issue
Block a user