1
0
Fork 0
forked from bton/matekasse

changed a float error

This commit is contained in:
bton 2024-09-18 22:29:02 +02:00
parent 3c87a971ea
commit 379f8b1fd3

View file

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