From 2050cc5a5cfb573d5d5ac5604adcef0e02ba1f04 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 16 Jun 2023 19:16:53 +0200 Subject: [PATCH] test --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 5c7d826..5b08a21 100644 --- a/main.py +++ b/main.py @@ -112,7 +112,7 @@ def remove_user(): @app.route("/adduser/user", methods=['GET']) def adduser(): user = request.args.get("username") - c.execute("SELECT * FROM users WHERE username=%(user)s", {'user': user}) + c.execute("SELECT * FROM users WHERE username='%s'", user) if c.fetchall() == []: c.execute("INSERT or IGNORE INTO users (username, balance) VALUES (%(user)s, 0)", {'user': user}) conn.commit()