From 736b0a05d56b886118016a124b0aaca0cfa068a5 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Wed, 15 Apr 2026 11:36:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20=E6=97=A5=E6=8A=A5?= =?UTF-8?q?=E9=A6=96=E5=93=8D=E8=BF=87=E6=BB=A4=E4=B8=8A=E9=99=90=20360?= =?UTF-8?q?=E2=86=9260=20=E5=88=86=E9=92=9F=EF=BC=8C=E5=AE=8C=E7=BB=93?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E4=B8=8A=E9=99=90=2024h=E2=86=926h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/daily_report_service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/services/daily_report_service.py b/app/services/daily_report_service.py index 164a7d3..59f452b 100644 --- a/app/services/daily_report_service.py +++ b/app/services/daily_report_service.py @@ -193,11 +193,11 @@ async def _build_daily_report_data() -> Optional[Dict]: false_alarm_count += 1 if sec_ext.dispatched_time and sec_ext.confirmed_time: delta = (sec_ext.confirmed_time - sec_ext.dispatched_time).total_seconds() / 60.0 - if 0 <= delta <= 360: + if 0 <= delta <= 60: response_times.append(delta) if sec_ext.dispatched_time and sec_ext.completed_time: delta = (sec_ext.completed_time - sec_ext.dispatched_time).total_seconds() / 60.0 - if 0 <= delta <= 24 * 60: + if 0 <= delta <= 6 * 60: close_times.append(delta) clean_ext = clean_ext_map.get(order.id) @@ -207,11 +207,11 @@ async def _build_daily_report_data() -> Optional[Dict]: dispatch_time = clean_ext.first_dispatched_time or clean_ext.dispatched_time if dispatch_time and clean_ext.arrived_time: delta = (clean_ext.arrived_time - dispatch_time).total_seconds() / 60.0 - if 0 <= delta <= 360: + if 0 <= delta <= 60: response_times.append(delta) if dispatch_time and clean_ext.completed_time: delta = (clean_ext.completed_time - dispatch_time).total_seconds() / 60.0 - if 0 <= delta <= 24 * 60: + if 0 <= delta <= 6 * 60: close_times.append(delta) camera_counter = Counter()