From 0b11c11af5e6b1e4eeafb149b96503293ac681ad Mon Sep 17 00:00:00 2001 From: DeXtroTip Date: Sat, 27 Aug 2016 14:46:11 +0100 Subject: [PATCH] Fixed a bug where cached inventory wasn't being updated on recycle_items.py --- pokemongo_bot/cell_workers/recycle_items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/cell_workers/recycle_items.py b/pokemongo_bot/cell_workers/recycle_items.py index 0073c6ce54..7bb46e3263 100644 --- a/pokemongo_bot/cell_workers/recycle_items.py +++ b/pokemongo_bot/cell_workers/recycle_items.py @@ -207,7 +207,7 @@ def recycle_excess_category_max(self, category_max, category_items_list): items_to_recycle = self.get_category_items_to_recycle(category_inventory, category_count, category_max) for item in items_to_recycle: action_delay(self.recycle_wait_min, self.recycle_wait_max) - if ItemRecycler(self.bot, inventory.items().get(item[0]), item[1]).work() == WorkerResult.ERROR: + if inventory.items().get(item[0]).recycle(item[1]) == WorkerResult.ERROR: worker_result = WorkerResult.ERROR return worker_result