diff --git a/main.py b/main.py index a46c30d..a0a1937 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='%(user)s'", {'user' : user}) if c.fetchall() == []: c.execute("INSERT or IGNORE INTO users (username, balance) VALUES ('%(user)s', 0)", {'user' : user} ) conn.commit()