diff --git a/app/templates/日报模板.docx b/app/templates/日报模板.docx deleted file mode 100644 index 8983da6..0000000 Binary files a/app/templates/日报模板.docx and /dev/null differ diff --git a/app/tools/final_doc.py b/app/tools/final_doc.py index 7ad7489..6d5f50b 100644 --- a/app/tools/final_doc.py +++ b/app/tools/final_doc.py @@ -231,7 +231,6 @@ def deal_docx(folder_path, save_path=None, time_type=0): top5_poweroff_list = [] # update:2025-07-04 修改供电类投诉前五供电局统计表的同排行 - """ need_district_statistics = ( district_statistics[0:5] if len(district_statistics) > 5 @@ -274,11 +273,12 @@ def deal_docx(folder_path, save_path=None, time_type=0): district_stat_before, ) else: - top5_name_list.append(f"其他{count + other_count}单位") + top5_name_list.append(f"其他{count + other_count}家单位") top5_poweroff_list.append(poweroff_value) - top_dod_dict["其他单位"] = "-" - """ + top_dod_dict["其他单位"] = "—" + # old_version + """ 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[top4[0]] = top5_dod_analysis(top4, district_stat_before) # top_dod_dict[top5[0]] = top5_dod_analysis(top5, district_stat_before) - + """ print(f"地市环比{top_dod_dict}") 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 = "持平" # 异常处置情况 - electricity_exception = "无" + electricity_exception = "停电、投诉、舆情整体平稳,无异常情况。" standardize_date = None