Emoji fix

This commit is contained in:
nsde 2023-08-06 21:25:29 +02:00
parent 56d550fedd
commit 07702c7b02

View file

@ -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'])