From 22156617b44dca01fea832206b63693e995bb8b1 Mon Sep 17 00:00:00 2001 From: Eli White Date: Thu, 28 Jul 2016 00:19:37 -0700 Subject: [PATCH] Removing CatchVisiblePokemonWorker's argument of cell --- pokemongo_bot/__init__.py | 2 +- pokemongo_bot/cell_workers/catch_visible_pokmeon_worker.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pokemongo_bot/__init__.py b/pokemongo_bot/__init__.py index e1b217d4b2..f05ea20280 100644 --- a/pokemongo_bot/__init__.py +++ b/pokemongo_bot/__init__.py @@ -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 diff --git a/pokemongo_bot/cell_workers/catch_visible_pokmeon_worker.py b/pokemongo_bot/cell_workers/catch_visible_pokmeon_worker.py index a9dd11b0f1..e965dc4662 100644 --- a/pokemongo_bot/cell_workers/catch_visible_pokmeon_worker.py +++ b/pokemongo_bot/cell_workers/catch_visible_pokmeon_worker.py @@ -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