nagasurendra commited on
Commit
40fcafd
·
verified ·
1 Parent(s): f9ac6c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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',