float errors fixed

This commit is contained in:
bton 2024-02-24 00:14:43 +01:00
parent 64e0c340c3
commit 5cb4dcc533

View file

@ -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])