Skip to content

Commit

Permalink
Add missing inventory fetch (#1233)
Browse files Browse the repository at this point in the history
To recycle an item with the correct number, we should force fetch from
the server.
  • Loading branch information
bstpierr authored and solderzzc committed Jul 27, 2016
1 parent 3b51bdd commit 74e37de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pokemongo_bot/cell_workers/recycle_items_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def __init__(self, bot):
self.item_list = bot.item_list

def work(self):
self.bot.latest_inventory = None
item_count_dict = self.bot.item_inventory_count('all')

for item_id, bag_count in item_count_dict.iteritems():
Expand Down

0 comments on commit 74e37de

Please sign in to comment.