From b041b73766e3e41f44686249bfb957acc8431487 Mon Sep 17 00:00:00 2001 From: wzj <244142824@qq.com> Date: Sat, 14 Jun 2025 10:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index d429237..b620aca 100644 --- a/app.py +++ b/app.py @@ -21,12 +21,13 @@ def to_pinyin(text): # 拼接成字符串 return "_".join([item[0] for item in pinyin_list]) +app = Flask(__name__) +app.secret_key = 'your-secret-key-here' + @app.template_filter('to_pinyin') def jinja2_to_pinyin(text): return to_pinyin(text) -app = Flask(__name__) -app.secret_key = 'your-secret-key-here' # 数据库配置 db_config = {