Skip to content

Commit

Permalink
Merge pull request #4809 from DeXtroTip/recycle_cached_inv_fix
Browse files Browse the repository at this point in the history
Fix cached inventory not updated
  • Loading branch information
solderzzc authored Aug 27, 2016
2 parents f0623bd + 0b11c11 commit 87f8374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/recycle_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 87f8374

Please sign in to comment.