Skip to content

Commit

Permalink
Fill out title colors
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanB committed Aug 14, 2024
1 parent ee99937 commit 22dc85e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ranked/templatetags/rank_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ def mmr_to_rank(mmr, highest_mmr, lowest_mmr):

# Determine rank based on percentile
if percentile <= 0.1:
return 'Challenger', '#ffffff'
return 'Challenger', '#c7ffff'
elif percentile <= 0.2:
return 'Grandmaster', '#ffffff'
return 'Grandmaster', '#eb8686'
elif percentile <= 0.3:
return 'Master', '#ffffff'
return 'Master', '#f985cb'
elif percentile <= 0.4:
return 'Diamond', '#ffffff'
return 'Diamond', '#c6d2ff'
elif percentile <= 0.5:
return 'Platinum', '#ffffff'
return 'Platinum', '#54eac1'
elif percentile <= 0.6:
return 'Gold', '#ebce75'
elif percentile <= 0.7:
return 'Silver', '#ffffff'
return 'Silver', '#d9d9d9'
elif percentile <= 0.8:
return 'Bronze', '#ffffff'
return 'Bronze', '#b8a25e'
elif percentile <= 0.9:
return 'Iron', '#ffffff'
else:
return 'Stone', '#ffffff'
return 'Stone', '#000000'

0 comments on commit 22dc85e

Please sign in to comment.