Skip to content

Commit

Permalink
Removing CatchVisiblePokemonWorker's argument of cell
Browse files Browse the repository at this point in the history
  • Loading branch information
elicwhite committed Jul 28, 2016
1 parent 53655e0 commit 04f53e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def work_on_cell(self, cell, position):

RecycleItemsWorker(self).work()

worker = CatchVisiblePokemonWorker(self, cell)
worker = CatchVisiblePokemonWorker(self)
if worker.work() == WorkerResult.RUNNING:
return

Expand Down
4 changes: 2 additions & 2 deletions pokemongo_bot/cell_workers/catch_visible_pokmeon_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from pokemongo_bot.cell_workers import PokemonCatchWorker

class CatchVisiblePokemonWorker(object):
def __init__(self, bot, cell):
def __init__(self, bot):
self.bot = bot
self.cell = cell;
self.cell = bot.cell;
self.api = bot.api
self.config = bot.config
self.position = bot.position
Expand Down

0 comments on commit 04f53e6

Please sign in to comment.