From 07702c7b024028417c6373c20113fd78f56d5b74 Mon Sep 17 00:00:00 2001 From: nsde Date: Sun, 6 Aug 2023 21:25:29 +0200 Subject: [PATCH] Emoji fix --- web/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app.py b/web/app.py index 73f00b3..fc4eb1c 100644 --- a/web/app.py +++ b/web/app.py @@ -50,8 +50,9 @@ def create_app() -> flask.Flask: emoji = None if subpath == 'terms': 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) @app.route('/api/tos-verification', methods=['POST'])