From bc42e46e8c74ab88d4fc5c9074fc7fd726e27f61 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 16 Jun 2023 18:54:34 +0200 Subject: [PATCH] Shunlnd do anything (that is right inglish) --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 5ea6da7..11b3da7 100644 --- a/main.py +++ b/main.py @@ -59,7 +59,7 @@ def list(): @app.route("/list/user", methods=['GET']) def user_info(): username = request.args.get("user") - c.execute("SELECT * FROM users WHERE username = %(username)s", {'username':username}) + c.execute("SELECT * FROM users WHERE username = %(username)s", {'username': username}) user_list = c.fetchall() if user_list != []: user = user_list[0] @@ -112,13 +112,13 @@ 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}) + c.execute("INSERT or IGNORE INTO users (username, balance) VALUES (%(user)s, 0)", {'user': user}) conn.commit() return 'Added user user and tag list

The creator of this website accepts no liability for any linguistic or technical errors!

' else: - return 'User already exists user and tag list

The creator of this website accepts no liability for any linguistic or technical errors!

' + return '

User already exists

user and tag list' @app.route("/change", methods=['GET'])