mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-25 18:33:57 +01:00
Emoji fix
This commit is contained in:
parent
56d550fedd
commit
07702c7b02
|
@ -50,8 +50,9 @@ def create_app() -> flask.Flask:
|
||||||
emoji = None
|
emoji = None
|
||||||
if subpath == 'terms':
|
if subpath == 'terms':
|
||||||
emoji = json.load(open('data/tos.json', encoding='utf8')).get(flask.request.args.get('verify'))
|
emoji = json.load(open('data/tos.json', encoding='utf8')).get(flask.request.args.get('verify'))
|
||||||
|
if emoji:
|
||||||
emoji = emoji.encode('utf8')
|
emoji = emoji.encode('utf8')
|
||||||
|
|
||||||
return flask.render_template(f'legal/{subpath}.html', verify=emoji)
|
return flask.render_template(f'legal/{subpath}.html', verify=emoji)
|
||||||
|
|
||||||
@app.route('/api/tos-verification', methods=['POST'])
|
@app.route('/api/tos-verification', methods=['POST'])
|
||||||
|
|
Loading…
Reference in a new issue