From ac07ad368c3d11d8b2cca2cdd9e18b7395054514 Mon Sep 17 00:00:00 2001 From: Vianney Dubus Date: Fri, 12 Aug 2016 09:44:54 +0200 Subject: [PATCH] NicknamePokemon: Format iv_pct on 3 digits (#3698) For better sorting on pokemon's name, format iv_pct on 3 digits. --- pokemongo_bot/cell_workers/nickname_pokemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/cell_workers/nickname_pokemon.py b/pokemongo_bot/cell_workers/nickname_pokemon.py index e521cadfba..68943e7a8e 100644 --- a/pokemongo_bot/cell_workers/nickname_pokemon.py +++ b/pokemongo_bot/cell_workers/nickname_pokemon.py @@ -50,7 +50,7 @@ def _nickname_pokemon(self,pokemon): iv_list = [iv_attack,iv_defense,iv_stamina] iv_ads = "/".join(map(str,iv_list)) iv_sum = sum(iv_list) - iv_pct = "{:0.0f}".format(100*iv_sum/45.0) + iv_pct = "{:03.0f}".format(100*iv_sum/45.0) log_color = 'red' try: new_name = self.template.format(name=name,