Update app.py
Browse files
app.py
CHANGED
@@ -174,6 +174,9 @@ def reward_status():
|
|
174 |
# Calculate points to next tier
|
175 |
points_needed_for_next_tier = end_point - user_points
|
176 |
next_tier = "Gold" # Next tier name (you can dynamically calculate this)
|
|
|
|
|
|
|
177 |
|
178 |
# Pass these values to your template
|
179 |
return render_template(
|
|
|
174 |
# Calculate points to next tier
|
175 |
points_needed_for_next_tier = end_point - user_points
|
176 |
next_tier = "Gold" # Next tier name (you can dynamically calculate this)
|
177 |
+
# Round the points before passing to the template
|
178 |
+
user_points = round(user_points)
|
179 |
+
points_needed_for_next_tier = round(points_needed_for_next_tier)
|
180 |
|
181 |
# Pass these values to your template
|
182 |
return render_template(
|