修复: 日报首响过滤上限 360→60 分钟,完结过滤上限 24h→6h

This commit is contained in:
2026-04-15 11:36:40 +08:00
parent 33e272cbc7
commit 736b0a05d5

View File

@@ -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()