Merge pull request 'main' (#4) from main into v2025-07-17

Reviewed-on: #4
v2025-07-17
znsb2 7 days ago
commit b02ba1cf5b

Binary file not shown.

@ -231,7 +231,6 @@ 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
@ -274,11 +273,12 @@ 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