From 9036e66f8d7588a2771d0156c20f33783ea9f6d4 Mon Sep 17 00:00:00 2001 From: Saunier Debes Brice Date: Mon, 15 Aug 2016 19:02:52 +0200 Subject: [PATCH] Fix not using category_max --- 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 8193019943..630072e59e 100644 --- a/pokemongo_bot/cell_workers/recycle_items.py +++ b/pokemongo_bot/cell_workers/recycle_items.py @@ -161,7 +161,7 @@ def get_category_items_to_recycle(self, category_inventory, category_count, cate """ x = 0 items_to_recycle = [] - if category_count > self.max_balls_keep: + if category_count > category_max: items_to_be_recycled = category_count - category_max for item in category_inventory: