From 47999eff6150389ae879b563c4d03ee5f0d5dd37 Mon Sep 17 00:00:00 2001
From: 2000-Trek {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()