Skip to content

Commit

Permalink
fix dump wrong variables
Browse files Browse the repository at this point in the history
  • Loading branch information
earthchie committed Jul 22, 2016
1 parent 875329f commit 21bec40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def work_on_cell(self, cell, position, include_fort_on_path):
print '[#] Something rustles nearby!'
for pokemon in cell['catchable_pokemons']:
with open('web/info.json', 'w') as outfile:
json.dump(inventory_dict, outfile)
json.dump(pokemon, outfile)
worker = PokemonCatchWorker(pokemon, self)
worker.work()
if (self.config.mode == "all" or self.config.mode == "poke") and 'wild_pokemons' in cell:
Expand Down

0 comments on commit 21bec40

Please sign in to comment.