Commits

Anonymous committed 4b79bb9

fixed the issue where get_progress_percentage() reports a user is more than 100% of the way to getting a badge

Comments (0)

Files changed (1)

 
         if not progress:
             progress = self.get_progress(user)
+
+        progress = min(progress, self.progress_end)
         
         # multiply by a float to get floating point precision
         return (100.0 * progress) / (self.progress_finish - self.progress_start)