float errors fixed
This commit is contained in:
parent
64e0c340c3
commit
5cb4dcc533
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||||
|
|
Loading…
Reference in a new issue