From 3aa107986896f8265eb37db0affc16f5cdd49115 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 23 Jun 2023 20:55:26 +0200 Subject: [PATCH] test print --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index d4830f3..0761e5d 100644 --- a/main.py +++ b/main.py @@ -51,7 +51,7 @@ def list(): users = c.fetchall() text = "" for i in users: - username = urllib.parse.quote_plus(i[1]) + username = urllib.parse.quote_plus(i[1], safe='_.-~') text = text + f'

{escape(i[1])}: {i[2]}

Change balance:



' return ''' @@ -70,7 +70,7 @@ def list(): @app.route("/list/user", methods=['GET']) def user_info(): username = urllib.parse.unquote_plus(request.args.get("user")) - db_log.info(username) + db_log.info(str(username)) c.execute("SELECT * FROM users WHERE username = ?", [username]) user_list = c.fetchall() if user_list != []: