-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
* disabling string parsing as structure is about to be changed * Test functionallity * Finished function item_filter with number limit * new item_filter update example configs
- Loading branch information
There are no files selected for viewing
4 comments
on commit 0ebdfc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Traceback (most recent call last): File "pokecli.py", line 246, in <module> main() File "pokecli.py", line 237, in main bot.take_step() File "/opt/dev/pokemongo_bot/__init__.py", line 45, in take_step self.work_on_cell(cell, location) File "/opt/dev/pokemongo_bot/__init__.py", line 216, in work_on_cell hack_chain = worker.work() File "/opt/dev/pokemongo_bot/cell_workers/seen_fort_worker.py", line 76, in work id_filter = self.config.item_filter.get(str(item_id), 0) AttributeError: 'unicode' object has no attribute 'get'
Just got this while trying to get items from a pokestop, is this related to this commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pmwoodward3 yes, you have to update item_filter
property in config.json to match the format in config.json.example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha, that fixed it, is there a list of all the items numbers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pmwoodward3 it's in data/items.json
This sum is not necessary (
self.bot.item_inventory_count(item_id)
already has the new items), and it is causing recycling to fail (trying to recycle more items than it has).