From af46c418e1e4ea7e162223ab8a5977caeda56353 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 14 Jun 2023 22:20:13 +0200 Subject: [PATCH] typo --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4007827..992a995 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(f"SELECT * FROM users WHERE username='%users'", {'user' : user}) + c.execute(f"SELECT * FROM users WHERE username=%(user)s", {'user' : user}) if c.fetchall() == []: c.execute("INSERT or IGNORE INTO users (username, balance) VALUES ('%(user)s', 0)", {'user' : user} ) conn.commit()