Skip to content

Commit

Permalink
when filter set to 0, it will failed (PokemonGoF#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdjwxh authored and MFizz committed Jul 29, 2016
1 parent dcb209c commit 2b1929a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/seen_fort_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def work(self):
if id_filter is not 0:
id_filter_keep = id_filter.get('keep',20)
new_bag_count = self.bot.item_inventory_count(item_id)
if str(item_id) in self.config.item_filter and new_bag_count >= id_filter_keep:
if str(item_id) in self.config.item_filter and new_bag_count > id_filter_keep:
#RECYCLE_INVENTORY_ITEM
items_recycle_count = new_bag_count - id_filter_keep
logger.log("-- Recycling " + str(items_recycle_count) + "x " + item_name + " to match filter "+ str(id_filter_keep) +"...", 'green')
Expand Down

0 comments on commit 2b1929a

Please sign in to comment.