diff --git a/db.py b/db.py index 3b9742a5..61a9a749 100644 --- a/db.py +++ b/db.py @@ -650,6 +650,22 @@ class Overwatch(Base): n = 7 return f"https://d1u1mce87gyfbn.cloudfront.net/game/rank-icons/season-2/rank-{n}.png" + def rank_name(self): + if self.rank < 1500: + return "Bronze" + elif self.rank < 2000: + return "Silver" + elif self.rank < 2500: + return "Gold" + elif self.rank < 3000: + return "Platinum" + elif self.rank < 3500: + return "Diamond" + elif self.rank < 4000: + return "Master" + else: + return "Grandmaster" + class Diario(Base): __tablename__ = "diario" diff --git a/static/nryg.less b/static/nryg.less index 69e56625..06342985 100644 --- a/static/nryg.less +++ b/static/nryg.less @@ -564,7 +564,7 @@ table { grid-column: 2; text-align: right; - img { + .game-image { height: 58px; border-radius: 4px; } diff --git a/templates/500.html b/templates/500.html index 31d25174..34fb14dd 100644 --- a/templates/500.html +++ b/templates/500.html @@ -11,12 +11,14 @@
Il server è crashato mentre cercava di generare questa pagina. Oops.
+++ I am sorry, unknown error occured during working with your request, Admin were notified +
+
-
-- @OcteonRygBot, 2017 + L'errore dovrebbe essere stato segnalato a Steffo. + Se riesci e ne hai voglia, spiegagli anche cosa ha provocato l'errore. + @OcteonRygBot, 2017 {% endblock %} \ No newline at end of file diff --git a/templates/main.html b/templates/main.html index 30373de6..a5b66d2b 100644 --- a/templates/main.html +++ b/templates/main.html @@ -32,7 +32,7 @@- I am sorry, unknown error occured during working with your request, Admin were notified -
-