🤦‍♂️

This commit is contained in:
Samuel Henrique 2017-07-03 18:15:19 -03:00
parent a33a9ba817
commit 498614e78a

View file

@ -234,8 +234,7 @@ class Database:
for file in os.listdir(extra_dir):
name, ext = os.path.splitext(file.lower())
if ext == '.jpg':
path = os.path.join(self.directory, 'Images', 'Extra',
name + ext)
path = os.path.join(extra_dir, file)
father = self.__pokemon_dictionary.get(name.split("-")[0])
if father is not None:
pokemon = Pokemon(None, name, father.get_region(),