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

Minifixes

This commit is contained in:
Steffo 2018-02-26 10:34:44 +01:00
parent bf7404c521
commit a31da80fe5
4 changed files with 17 additions and 17 deletions

2
db.py
View file

@ -19,6 +19,7 @@ engine = create_engine(config["Database"]["database_uri"])
Base = declarative_base(bind=engine)
Session = sessionmaker(bind=engine)
class Royal(Base):
__tablename__ = "royals"
@ -64,7 +65,6 @@ class Telegram(Base):
last_name=telegram_user.last_name,
username=telegram_user.username)
def __repr__(self):
return f"<Telegram {self.id}>"

View file

@ -67,7 +67,7 @@ table.dota th {
line-height: 14px;
}
.rl-unranked {
.unranked {
color: grey;
}

View file

@ -37,16 +37,16 @@
<td><a href="http://steamcommunity.com/profiles/{{ record.steam.steam_id }}"><img src="{{ record.steam.avatar_url() }}"> {{ record.steam.persona_name }}</a></td>
<td>{{ record.wins }}</td>
<td sorttable_customkey="{{ record.rank_tier }}">
<div class="dota-rank-medal">
{% if record.rank_tier is not none %}
<img class="thirtytwo dota-rank-medal-icon" src="{{ record.get_rank_icon_url() }}">{% if record.get_rank_stars_url() %}<img class="thirtytwo dota-rank-medal-stars" src="{{ record.get_rank_stars_url() }}">{% endif %}
{% if record.rank_tier < 10 %}
<span class="rl-unranked">Unranked</span>
{% elif record.rank_tier >= 10 %}
{{ record.get_rank_name() }} {{ record.get_rank_number() }}
{% endif %}
{% endif %}
</div>
{% if record.rank_tier is none %}
{% elif record.rank_tier < 10 %}
<div class="dota-rank-medal unranked">
<img class="thirtytwo dota-rank-medal-icon" src="https://www.opendota.com/assets/images/dota2/rank_icons/rank_star_0.png">
{{ record.rank_tier }} piazzamenti completati
</div>
{% else %}
<img class="thirtytwo dota-rank-medal-icon" src="{{ record.get_rank_icon_url() }}">{% if record.get_rank_stars_url() %}<img class="thirtytwo dota-rank-medal-stars" src="{{ record.get_rank_stars_url() }}">{% endif %}
{{ record.get_rank_name() }} {{ record.get_rank_number() }}
{% endif %}
</td>
</tr>
{% endfor %}
@ -82,7 +82,7 @@
</div>
{% elif record.single_mmr is not none %}
<img class="thirtytwo" src="https://rocketleaguestats.com/assets/img/rocket_league/ranked/season_four/0.png">
<div class="rl-rank-text rl-unranked">
<div class="rl-rank-text unranked">
<div class="rl-rank-number">{{ record.single_mmr }}</div>
<div class="rl-rank-division">Inattivo</div>
</div>
@ -97,7 +97,7 @@
</div>
{% elif record.doubles_mmr is not none %}
<img class="thirtytwo" src="https://rocketleaguestats.com/assets/img/rocket_league/ranked/season_four/0.png">
<div class="rl-rank-text rl-unranked">
<div class="rl-rank-text unranked">
<div class="rl-rank-number">{{ record.doubles_mmr }}</div>
<div class="rl-rank-division">Inattivo</div>
</div>
@ -112,7 +112,7 @@
</div>
{% elif record.standard_mmr is not none %}
<img class="thirtytwo" src="https://rocketleaguestats.com/assets/img/rocket_league/ranked/season_four/0.png">
<div class="rl-rank-text rl-unranked">
<div class="rl-rank-text unranked">
<div class="rl-rank-number">{{ record.standard_mmr }}</div>
<div class="rl-rank-division">Inattivo</div>
</div>
@ -127,7 +127,7 @@
</div>
{% elif record.solo_std_mmr is not none %}
<img class="thirtytwo" src="https://rocketleaguestats.com/assets/img/rocket_league/ranked/season_four/0.png">
<div class="rl-rank-text rl-unranked">
<div class="rl-rank-text unranked">
<div class="rl-rank-number">{{ record.solo_std_mmr }}</div>
<div class="rl-rank-division">Inattivo</div>
</div>

View file

@ -106,4 +106,4 @@ except KeyboardInterrupt:
finally:
print("Committing...\t\t")
session.commit()
print("OK")
print("OK")