1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +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) Base = declarative_base(bind=engine)
Session = sessionmaker(bind=engine) Session = sessionmaker(bind=engine)
class Royal(Base): class Royal(Base):
__tablename__ = "royals" __tablename__ = "royals"
@ -64,7 +65,6 @@ class Telegram(Base):
last_name=telegram_user.last_name, last_name=telegram_user.last_name,
username=telegram_user.username) username=telegram_user.username)
def __repr__(self): def __repr__(self):
return f"<Telegram {self.id}>" return f"<Telegram {self.id}>"

View file

@ -67,7 +67,7 @@ table.dota th {
line-height: 14px; line-height: 14px;
} }
.rl-unranked { .unranked {
color: grey; 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><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>{{ record.wins }}</td>
<td sorttable_customkey="{{ record.rank_tier }}"> <td sorttable_customkey="{{ record.rank_tier }}">
<div class="dota-rank-medal"> {% if record.rank_tier is none %}
{% if record.rank_tier is not none %} {% elif record.rank_tier < 10 %}
<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 %} <div class="dota-rank-medal unranked">
{% if record.rank_tier < 10 %} <img class="thirtytwo dota-rank-medal-icon" src="https://www.opendota.com/assets/images/dota2/rank_icons/rank_star_0.png">
<span class="rl-unranked">Unranked</span> {{ record.rank_tier }} piazzamenti completati
{% elif record.rank_tier >= 10 %} </div>
{{ record.get_rank_name() }} {{ record.get_rank_number() }} {% else %}
{% endif %} <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 %}
{% endif %} {{ record.get_rank_name() }} {{ record.get_rank_number() }}
</div> {% endif %}
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
@ -82,7 +82,7 @@
</div> </div>
{% elif record.single_mmr is not none %} {% elif record.single_mmr is not none %}
<img class="thirtytwo" src="https://rocketleaguestats.com/assets/img/rocket_league/ranked/season_four/0.png"> <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-number">{{ record.single_mmr }}</div>
<div class="rl-rank-division">Inattivo</div> <div class="rl-rank-division">Inattivo</div>
</div> </div>
@ -97,7 +97,7 @@
</div> </div>
{% elif record.doubles_mmr is not none %} {% elif record.doubles_mmr is not none %}
<img class="thirtytwo" src="https://rocketleaguestats.com/assets/img/rocket_league/ranked/season_four/0.png"> <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-number">{{ record.doubles_mmr }}</div>
<div class="rl-rank-division">Inattivo</div> <div class="rl-rank-division">Inattivo</div>
</div> </div>
@ -112,7 +112,7 @@
</div> </div>
{% elif record.standard_mmr is not none %} {% elif record.standard_mmr is not none %}
<img class="thirtytwo" src="https://rocketleaguestats.com/assets/img/rocket_league/ranked/season_four/0.png"> <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-number">{{ record.standard_mmr }}</div>
<div class="rl-rank-division">Inattivo</div> <div class="rl-rank-division">Inattivo</div>
</div> </div>
@ -127,7 +127,7 @@
</div> </div>
{% elif record.solo_std_mmr is not none %} {% elif record.solo_std_mmr is not none %}
<img class="thirtytwo" src="https://rocketleaguestats.com/assets/img/rocket_league/ranked/season_four/0.png"> <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-number">{{ record.solo_std_mmr }}</div>
<div class="rl-rank-division">Inattivo</div> <div class="rl-rank-division">Inattivo</div>
</div> </div>

View file

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