diff --git a/Website/__init__.py b/Website/__init__.py index 1ec1223..5b1726e 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -83,7 +83,7 @@ def create_app(test_config=None): users = c.fetchall() text = "" for i in users: - text = text + f'
{escape(i[1])}: {i[2]}€
{escape(i[1])}: {i[2]/100}€
user and tag list | Documentation
-{escape(user[1])} : {escape(user[2])}€
+
{escape(user[1])} : {escape(user[2]/100)}€
@@ -213,7 +213,7 @@ def create_app(test_config=None): users = c.fetchall() if users != []: balance_old = users[0][2] - c.execute(f"UPDATE users SET balance = balance + {change} WHERE id={user_id}") + c.execute(f"UPDATE users SET balance = balance + {change*100} WHERE id={user_id}") db.commit() c.execute(f"SELECT * FROM users WHERE id={user_id}") user = c.fetchone() @@ -319,7 +319,7 @@ def create_app(test_config=None): change = int(request.args.get("change")) except: change = -1 - c.execute(f"UPDATE users SET balance = balance + {change} WHERE id={user[0]}") + c.execute(f"UPDATE users SET balance = balance + {change*100} WHERE id={user[0]}") db.commit() c.execute(f"SELECT * FROM users WHERE id = {userid}") user_new = c.fetchone() @@ -387,7 +387,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.5 WHERE id={tag[1]}") + c.execute(f"UPDATE users SET balance = balance - 150 WHERE id={tag[1]}") db.commit() c.execute(f"SELECT * FROM users WHERE id={tag[1]}") user = c.fetchone()