origin/transaction_between_user #41

Merged
anton merged 3 commits from origin/transaction_between_user into master 2024-10-04 19:48:17 +00:00
Showing only changes of commit 379f8b1fd3 - Show all commits

View file

@ -297,7 +297,7 @@ def create_app(test_config=None):
c = db.cursor() c = db.cursor()
transfare_from = request.form["transfarefrom"] transfare_from = request.form["transfarefrom"]
transfare_to = request.form["transfareto"] 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]) c.execute("SELECT * FROM users WHERE id=?", [transfare_from])
if c.fetchall() == []: if c.fetchall() == []:
return render_template("error.html", error_code="043") return render_template("error.html", error_code="043")