1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

sono un nulla

This commit is contained in:
Steffo 2017-01-20 23:23:28 +01:00
parent 94f0972c5b
commit 8f6740fcaf

View file

@ -57,19 +57,19 @@ def rank_to_medal(rank):
# Convert an url to a medal # Convert an url to a medal
def url_to_medal(rank: str): def url_to_medal(rank: str):
if rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-1.png": if rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-1.png":
return s.overwatch_medal_list[0]
elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-2.png":
return s.overwatch_medal_list[1] return s.overwatch_medal_list[1]
elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-3.png": elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-2.png":
return s.overwatch_medal_list[2] return s.overwatch_medal_list[2]
elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-4.png": elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-3.png":
return s.overwatch_medal_list[3] return s.overwatch_medal_list[3]
elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-5.png": elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-4.png":
return s.overwatch_medal_list[4] return s.overwatch_medal_list[4]
elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-6.png": elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-5.png":
return s.overwatch_medal_list[5] return s.overwatch_medal_list[5]
elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-7.png": elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-6.png":
return s.overwatch_medal_list[6] return s.overwatch_medal_list[6]
elif rank == "https://blzgdapipro-a.akamaihd.net/game/rank-icons/season-2/rank-7.png":
return s.overwatch_medal_list[7]
else: else:
raise NotFoundException("The medal does not exist.") raise NotFoundException("The medal does not exist.")