|
@@ -484,6 +484,12 @@ async def get_event_detail(
|
|
|
|
|
|
# 已应答
|
|
|
if data['call_status'] == 1:
|
|
|
+
|
|
|
+ # 处理垃圾数据
|
|
|
+ if base_row.end_time is None:
|
|
|
+ base_row.end_time = datetime.now()
|
|
|
+ db.commit()
|
|
|
+
|
|
|
time_diff = base_row.end_time - base_row.create_time
|
|
|
# hours,minutes,seconds = str(time_diff).split(':')
|
|
|
data['duration_time'] = str(time_diff)
|