修复bug

This commit is contained in:
wzj 2025-06-14 10:05:11 +08:00
parent 240409ccf9
commit b041b73766

5
app.py
View File

@ -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 = {