Update app.py
Browse files
app.py
CHANGED
@@ -175,6 +175,9 @@ def reward_status():
|
|
175 |
progress_percentage = 100 # If the user has already maxed out the tier
|
176 |
else:
|
177 |
progress_percentage = 100 # For Platinum, set the progress to 100%
|
|
|
|
|
|
|
178 |
|
179 |
return render_template(
|
180 |
'reward_status.html',
|
|
|
175 |
progress_percentage = 100 # If the user has already maxed out the tier
|
176 |
else:
|
177 |
progress_percentage = 100 # For Platinum, set the progress to 100%
|
178 |
+
# Round the points before passing to the template
|
179 |
+
user_points = round(user_points)
|
180 |
+
points_needed_for_next_tier = round(points_needed_for_next_tier)
|
181 |
|
182 |
return render_template(
|
183 |
'reward_status.html',
|