修复问题诊断页面bug
This commit is contained in:
parent
357e49700f
commit
5dc0b3489b
|
|
@ -1799,7 +1799,7 @@ def gen_cross_imbalance_problems(road_delay_infos, roads_dir_dict, cross_phase):
|
|||
max_src = road_src_dict[max_roadid] if max_roadid in road_src_dict else None
|
||||
min_src = road_src_dict[min_roadid] if min_roadid in road_src_dict else None
|
||||
if max_src is None or min_src is None:
|
||||
return detail, suggestion, total_num
|
||||
return detail, suggestion, total_num, problem_info_detail
|
||||
rate = int(round(max_stop_times_road.delay_info.stop_times, 2) / round(min_stop_times_road.delay_info.stop_times, 2) * 100) if min_stop_times_road.delay_info.stop_times > 0 else 0
|
||||
total_num = 1
|
||||
detail = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue