修复bug
This commit is contained in:
parent
240409ccf9
commit
b041b73766
5
app.py
5
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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user