1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2018-01-19 09:53:31 +01:00
parent 3e5afe17aa
commit 5fff77d45b
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C27544372FBB445D

2
db.py
View file

@ -258,7 +258,7 @@ class Dota(Base):
def get_rank_icon_url(self):
if self.rank_tier is None or self.rank_tier < 10:
f"https://www.opendota.com/assets/images/dota2/rank_icons/rank_icon_0.png"
return f"https://www.opendota.com/assets/images/dota2/rank_icons/rank_icon_0.png"
return f"https://www.opendota.com/assets/images/dota2/rank_icons/rank_icon_{self.rank_tier - 10 // 6}.png"
@staticmethod