1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

Add osu icons

This commit is contained in:
Steffo 2019-01-02 18:16:53 +01:00
parent 2a2bd94f29
commit 4f60ff0f81
4 changed files with 10 additions and 6 deletions

2
db.py
View file

@ -433,7 +433,7 @@ class LeagueOfLegends(Base):
return champ["name"]
def highest_mastery_champ_image(self):
champ = loldata.get_champ_by_key(self.highest_mastery_champ).replace("'", "")
champ = loldata.get_champ_by_key(self.highest_mastery_champ)
return loldata.get_champ_icon(champ["name"])

View file

@ -1443,5 +1443,5 @@ def get_champ_by_key(key):
def get_champ_icon(name: str):
name = name.replace(" ", "")
name = name.replace(" ", "").replace("'", "")
return f"http://ddragon.leagueoflegends.com/cdn/8.19.1/img/champion/{name}.png"

View file

@ -347,6 +347,10 @@ table {
.game-title {
font-style: normal;
img {
vertical-align: sub;
}
}
.standard {

View file

@ -9,25 +9,25 @@
</a>
</div>
<div class="game-title standard">
osu!
<img src="https://osu.ppy.sh/help/wiki/shared/mode/osu.png"> osu!
</div>
<div class="game-score standard">
<span class="number">{{ record.std_pp | int }}</span><span class="pp">pp</span>
</div>
<div class="game-title taiko">
osu!taiko
<img src="https://osu.ppy.sh/help/wiki/shared/mode/taiko.png"> taiko
</div>
<div class="game-score taiko">
<span class="number">{{ record.taiko_pp | int }}</span><span class="pp">pp</span>
</div>
<div class="game-title catch">
osu!catch
<img src="https://osu.ppy.sh/help/wiki/shared/mode/catch.png"> catch
</div>
<div class="game-score catch">
<span class="number">{{ record.catch_pp | int }}</span><span class="pp">pp</span>
</div>
<div class="game-title mania">
osu!mania
<img src="https://osu.ppy.sh/help/wiki/shared/mode/mania.png"> mania
</div>
<div class="game-score mania">
<span class="number">{{ record.mania_pp | int }}</span><span class="pp">pp</span>