Skip to content

Commit

Permalink
Revamped the graph-feature code for proper functioning
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi2019194 committed Nov 25, 2023
1 parent aed0b9a commit 42eab5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ def bmi_calci():
if request.method == 'POST' and 'weight' in request.form:
weight = float(request.form.get('weight'))
height = float(request.form.get('height'))
bmi = calc_bmi(weight, height)
bmi_category = get_bmi_category(bmi)
bmi = u.calc_bmi(weight, height)
bmi_category = u.get_bmi_category(bmi)

return render_template("bmi_cal.html", bmi=bmi, bmi_category=bmi_category)

Expand Down

0 comments on commit 42eab5f

Please sign in to comment.