1
0
Fork 0
forked from anton/matekasse

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() c = db.cursor()
try: try:
user_id = request.form["id"] user_id = request.form["id"]
change = int(float(request.form["change"]) * 100) change = int(float(request.form["change"]) * float(100))
except: except:
return render_template("error.html", error_code="095") return render_template("error.html", error_code="095")
c.execute(f"SELECT * FROM users WHERE id=?", [user_id]) c.execute(f"SELECT * FROM users WHERE id=?", [user_id])