mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Add osu icons
This commit is contained in:
parent
2a2bd94f29
commit
4f60ff0f81
4 changed files with 10 additions and 6 deletions
2
db.py
2
db.py
|
@ -433,7 +433,7 @@ class LeagueOfLegends(Base):
|
||||||
return champ["name"]
|
return champ["name"]
|
||||||
|
|
||||||
def highest_mastery_champ_image(self):
|
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"])
|
return loldata.get_champ_icon(champ["name"])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1443,5 +1443,5 @@ def get_champ_by_key(key):
|
||||||
|
|
||||||
|
|
||||||
def get_champ_icon(name: str):
|
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"
|
return f"http://ddragon.leagueoflegends.com/cdn/8.19.1/img/champion/{name}.png"
|
||||||
|
|
|
@ -347,6 +347,10 @@ table {
|
||||||
|
|
||||||
.game-title {
|
.game-title {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|
||||||
|
img {
|
||||||
|
vertical-align: sub;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.standard {
|
.standard {
|
||||||
|
|
|
@ -9,25 +9,25 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="game-title standard">
|
<div class="game-title standard">
|
||||||
osu!
|
<img src="https://osu.ppy.sh/help/wiki/shared/mode/osu.png"> osu!
|
||||||
</div>
|
</div>
|
||||||
<div class="game-score standard">
|
<div class="game-score standard">
|
||||||
<span class="number">{{ record.std_pp | int }}</span><span class="pp">pp</span>
|
<span class="number">{{ record.std_pp | int }}</span><span class="pp">pp</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="game-title taiko">
|
<div class="game-title taiko">
|
||||||
osu!taiko
|
<img src="https://osu.ppy.sh/help/wiki/shared/mode/taiko.png"> taiko
|
||||||
</div>
|
</div>
|
||||||
<div class="game-score taiko">
|
<div class="game-score taiko">
|
||||||
<span class="number">{{ record.taiko_pp | int }}</span><span class="pp">pp</span>
|
<span class="number">{{ record.taiko_pp | int }}</span><span class="pp">pp</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="game-title catch">
|
<div class="game-title catch">
|
||||||
osu!catch
|
<img src="https://osu.ppy.sh/help/wiki/shared/mode/catch.png"> catch
|
||||||
</div>
|
</div>
|
||||||
<div class="game-score catch">
|
<div class="game-score catch">
|
||||||
<span class="number">{{ record.catch_pp | int }}</span><span class="pp">pp</span>
|
<span class="number">{{ record.catch_pp | int }}</span><span class="pp">pp</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="game-title mania">
|
<div class="game-title mania">
|
||||||
osu!mania
|
<img src="https://osu.ppy.sh/help/wiki/shared/mode/mania.png"> mania
|
||||||
</div>
|
</div>
|
||||||
<div class="game-score mania">
|
<div class="game-score mania">
|
||||||
<span class="number">{{ record.mania_pp | int }}</span><span class="pp">pp</span>
|
<span class="number">{{ record.mania_pp | int }}</span><span class="pp">pp</span>
|
||||||
|
|
Loading…
Reference in a new issue