Browse Source

json中文不转码

master
欧醚 3 years ago
parent
commit
18add5e823
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ask.py

+ 2
- 0
ask.py View File

@ -21,6 +21,8 @@ th = Mastodon(
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///ask.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['JSON_AS_ASCII'] = False
limiter = Limiter(
app,
key_func=get_remote_address,

Loading…
Cancel
Save