feat: update prediction workbook output
This commit is contained in:
+2
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user