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