devinshende / challenge-tracker

Website to track challenge times for obstacles at nwninjapark in springfield, OR
https://ninjapark-tracker.herokuapp.com
1 stars 0 forks source link

rank leaderboard by least time instead of most #54

Closed ravishende closed 3 years ago

ravishende commented 3 years ago

for challenges such as the campus board up and down, we need to rank it so first place is least place rather than most.

ravishende commented 3 years ago

after some more research, some challenges are behaving the way they should and others aren't. Green underlines indicate challenges that sort correctly for their challenge type, and red ones are those that sort incorrectly

Screen Shot 2021-05-03 at 11 51 09 AM

.

ravishende commented 3 years ago

It was just trying to sort by the wrong index in utils. If this happens again, change the lambda x:x[2] to be x:x[1] or something like that. This is under sort_data in utils.py