Compare commits

..

No commits in common. 'caf8d4db39c9fe4e97ef273095a294b3b0f5da3e' and '66a7016ab0bdfd610428e5995054373df35fa41a' have entirely different histories.

Binary file not shown.

@ -231,6 +231,7 @@ def deal_docx(folder_path, save_path=None, time_type=0):
top5_poweroff_list = [] top5_poweroff_list = []
# update:2025-07-04 修改供电类投诉前五供电局统计表的同排行 # update:2025-07-04 修改供电类投诉前五供电局统计表的同排行
"""
need_district_statistics = ( need_district_statistics = (
district_statistics[0:5] district_statistics[0:5]
if len(district_statistics) > 5 if len(district_statistics) > 5
@ -273,12 +274,11 @@ def deal_docx(folder_path, save_path=None, time_type=0):
district_stat_before, district_stat_before,
) )
else: else:
top5_name_list.append(f"其他{count + other_count}单位") top5_name_list.append(f"其他{count + other_count}单位")
top5_poweroff_list.append(poweroff_value) top5_poweroff_list.append(poweroff_value)
top_dod_dict["其他单位"] = "" top_dod_dict["其他单位"] = "-"
# old_version
""" """
# old_version
if len(district_statistics) >= 5: if len(district_statistics) >= 5:
# 地市前五统计 # 地市前五统计
@ -316,7 +316,7 @@ def deal_docx(folder_path, save_path=None, time_type=0):
# top_dod_dict[top3[0]] = top5_dod_analysis(top3, district_stat_before) # top_dod_dict[top3[0]] = top5_dod_analysis(top3, district_stat_before)
# top_dod_dict[top4[0]] = top5_dod_analysis(top4, district_stat_before) # top_dod_dict[top4[0]] = top5_dod_analysis(top4, district_stat_before)
# top_dod_dict[top5[0]] = top5_dod_analysis(top5, district_stat_before) # top_dod_dict[top5[0]] = top5_dod_analysis(top5, district_stat_before)
"""
print(f"地市环比{top_dod_dict}") print(f"地市环比{top_dod_dict}")
top5_stat_list = list(top_dod_dict.values()) top5_stat_list = list(top_dod_dict.values())
@ -339,7 +339,7 @@ def deal_docx(folder_path, save_path=None, time_type=0):
complain_dod = "持平" complain_dod = "持平"
# 异常处置情况 # 异常处置情况
electricity_exception = "停电、投诉、舆情整体平稳,异常情况。" electricity_exception = ""
standardize_date = None standardize_date = None

Loading…
Cancel
Save