diff --git a/Website/__init__.py b/Website/__init__.py index 8b2a180..335e60c 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -76,7 +76,7 @@ def create_app(test_config=None): users = c.fetchall() text = "" for i in users: - text = text + f'

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



' + text = text + f'

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



' return ''' @@ -88,7 +88,6 @@ def create_app(test_config=None): Strichliste

user and tag list | Documentation

-

1 Credit = 1,50 Euro



@@ -120,7 +119,7 @@ def create_app(test_config=None):

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

-

+



Tags:

@@ -188,7 +187,7 @@ def create_app(test_config=None): c = db.cursor() try: user_id = request.args.get("id") - change = int(request.args.get("change")) + change = float(request.args.get("change")) except: return render_template("error.html", error_code="095") c.execute(f"SELECT * FROM users WHERE id=?", [user_id]) @@ -367,7 +366,7 @@ def create_app(test_config=None): if user_list != []: balance_old = user_list[0][2] if user_queue.qsize() == 0: - c.execute(f"UPDATE users SET balance = balance - 1 WHERE id={tag[1]}") + c.execute(f"UPDATE users SET balance = balance - 1.5 WHERE id={tag[1]}") db.commit() c.execute(f"SELECT * FROM users WHERE id={tag[1]}") user = c.fetchone()