From 9ed276a31360b72b63a02df67659b07ca088d263 Mon Sep 17 00:00:00 2001 From: ping <1017253325@qq.com> Date: Thu, 18 Jun 2026 14:58:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=90=A5=E6=8A=A5=E8=A1=A8=20?= =?UTF-8?q?=E6=9C=80=E8=BF=91=E4=BD=BF=E7=94=A8=E6=97=B6=E9=97=B4=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- b/cntoai/model_usage_admin_report.dspy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/b/cntoai/model_usage_admin_report.dspy b/b/cntoai/model_usage_admin_report.dspy index 04e6861..bf0e068 100644 --- a/b/cntoai/model_usage_admin_report.dspy +++ b/b/cntoai/model_usage_admin_report.dspy @@ -307,7 +307,11 @@ def _aggregate_admin_summary(items, user_map, org_map): bucket['request_count'] += 1 usage_time = item.get('usage_time') if usage_time: - bucket['last_usage_time'] = usage_time + if ( + not bucket.get('last_usage_time') + or str(usage_time) > str(bucket['last_usage_time']) + ): + bucket['last_usage_time'] = usage_time if ( not bucket.get('first_usage_time') or str(usage_time) < str(bucket['first_usage_time'])