From 379f8b1fd3af8c24cc6e64a44f0b6f78b74bc9ac Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 18 Sep 2024 22:29:02 +0200 Subject: [PATCH] changed a float error --- Website/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/__init__.py b/Website/__init__.py index d942b8e..dd06e73 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -297,7 +297,7 @@ def create_app(test_config=None): c = db.cursor() transfare_from = request.form["transfarefrom"] transfare_to = request.form["transfareto"] - change = int(request.form["change"]) * 100 + change = int(float(request.form["change"]) * float(100)) c.execute("SELECT * FROM users WHERE id=?", [transfare_from]) if c.fetchall() == []: return render_template("error.html", error_code="043")