From 5cb4dcc53356143f1a62a4ffb562e10b49d76d3b Mon Sep 17 00:00:00 2001 From: bton Date: Sat, 24 Feb 2024 00:14:43 +0100 Subject: [PATCH] float errors fixed --- Website/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/__init__.py b/Website/__init__.py index d9f929f..2bad171 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -141,7 +141,7 @@ def create_app(test_config=None): c = db.cursor() try: user_id = request.form["id"] - change = int(float(request.form["change"]) * 100) + change = int(float(request.form["change"]) * float(100)) except: return render_template("error.html", error_code="095") c.execute(f"SELECT * FROM users WHERE id=?", [user_id])