From 12a6e04f7374165761f7044226735392246f1105 Mon Sep 17 00:00:00 2001 From: LazoCoder Date: Wed, 21 Jun 2017 19:11:19 -0400 Subject: [PATCH] Fixed Value Error ValueError: '=' alignment not allowed in string format specifier --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index a34d0a3..b44edff 100644 --- a/database.py +++ b/database.py @@ -158,7 +158,7 @@ class Database: with open(self.directory + "/./Data/pokemon.txt", 'r') as data_file: for line in data_file: # Load everything but the Pokemon from the 'Extra' folder. identifier, _, name = line.strip().partition(' ') - identifier = '{:03}'.format(identifier) + identifier = '{:03}'.format(int(identifier)) region = self.__determine_region(identifier) path = self.__determine_folder(identifier) + "/" + identifier + ".png" pokemon = Pokemon(identifier, name, region, path)