feat: update prediction workbook output

This commit is contained in:
2026-07-06 18:33:52 +08:00
parent c7ee2adb82
commit 0a12eb7f3b
8 changed files with 219 additions and 78 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ from .time_utils import format_datetime_for_timezone
bp = Blueprint("main", __name__)
REFERENCE_PDF_NAME = "20260630标准文本——供水管道健康状态与剩余寿命评估技术导则.pdf"
TEMPLATE_EXCEL_NAME = "管道预测数据模板.xlsx"
REGISTRATION_SETTING_KEY = "allow_registration"
RECORDS_PER_PAGE = 10
@@ -375,7 +376,7 @@ def download_template():
template_path = BASE_DIR / "example.xlsx"
if not template_path.exists():
abort(404)
return send_file(template_path, as_attachment=True, download_name="example.xlsx")
return send_file(template_path, as_attachment=True, download_name=TEMPLATE_EXCEL_NAME)
@bp.route("/reference_pdf")