From dcac24660760b7f30c2331a9756d7113ca1efbf7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 2 Oct 2016 00:38:50 +0200 Subject: [PATCH] Fixato il bug di LoL. Forse. --- main.py | 5 +++-- strings.py | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 17473b9a..8fff8774 100644 --- a/main.py +++ b/main.py @@ -95,8 +95,9 @@ async def league_rank_change(timeout): player=player, tier=s.league_tier_list[tier_number], division=r["entries"][0]["division"], - oldtier=db[player]["league"]["tier"], - olddivision=db[player]["league"]["division"])) + oldtier=s.league_tier_list[db[player]["league"]["tier"]], + olddivision= + s.league_roman_list[db[player]["league"]["division"]])) # Update database db[player]["league"]["tier"] = tier_number db[player]["league"]["division"] = roman_number diff --git a/strings.py b/strings.py index 77ee31e6..a75356c9 100644 --- a/strings.py +++ b/strings.py @@ -15,6 +15,13 @@ league_tier_list = ["Bronzo", "Master", "Challenger"] +# League of Legends: Roman tier list +league_roman_list = ["I", + "II", + "III", + "IV", + "V"] + # League of Legends: Level up! league_level_up = "{player} รจ salito al livello **{level}** su _League of Legends_!"