chore(observability): clarify quick review completion copy
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s

This commit is contained in:
OoO
2026-05-06 19:49:28 +08:00
parent dc7fe371bd
commit 308efdce25
23 changed files with 863 additions and 341 deletions

11
app.py
View File

@@ -96,7 +96,7 @@ except Exception as e:
# 🚩 系統版本定義 (備份與顯示用)
# 🚩 2026-05-01 V10.76: Move monthly analysis report onto V2 shell
SYSTEM_VERSION = "V10.77"
SYSTEM_VERSION = "V10.83"
# ==========================================
# 🔒 SQL Injection 防護函數
@@ -142,6 +142,12 @@ app = Flask(__name__,
template_folder=TEMPLATE_DIR,
static_folder=STATIC_DIR)
@app.route('/favicon.ico')
def favicon():
"""Serve a lightweight site icon so browser checks do not create noisy 404s."""
return redirect(url_for('static', filename='images/logo_circle.svg'))
# ==========================================
# 🔒 Flask 安全配置
# ==========================================
@@ -412,7 +418,7 @@ verify_metadata_tables()
# ==========================================
# 🔧 全域模板變數注入 (Context Processor)
# ==========================================
from config import METABASE_URL, GRIST_URL
from config import METABASE_URL, GRIST_URL, SYSTEM_VERSION as CONFIG_SYSTEM_VERSION
@app.context_processor
def inject_global_vars():
@@ -420,6 +426,7 @@ def inject_global_vars():
return {
'metabase_url': METABASE_URL,
'grist_url': GRIST_URL,
'system_version': CONFIG_SYSTEM_VERSION,
'datetime_now': datetime.now(TAIPEI_TZ).strftime('%Y-%m-%d %H:%M:%S'),
}