From dca0acbef9024345a36ab72c94f8dc7e7f3b49ab Mon Sep 17 00:00:00 2001 From: DeXtroTip Date: Thu, 18 Aug 2016 22:55:30 +0100 Subject: [PATCH] Minor fixes after removed the old inventory --- pokemongo_bot/cell_workers/collect_level_up_reward.py | 2 +- pokemongo_bot/cell_workers/nickname_pokemon.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pokemongo_bot/cell_workers/collect_level_up_reward.py b/pokemongo_bot/cell_workers/collect_level_up_reward.py index 950f450660..bcf086d063 100644 --- a/pokemongo_bot/cell_workers/collect_level_up_reward.py +++ b/pokemongo_bot/cell_workers/collect_level_up_reward.py @@ -56,7 +56,7 @@ def _collect_level_reward(self): def _get_current_level(self): level = 0 - response_dict = self.bot.get_inventory() + response_dict = self.bot.api.get_inventory() data = (response_dict .get('responses', {}) .get('GET_INVENTORY', {}) diff --git a/pokemongo_bot/cell_workers/nickname_pokemon.py b/pokemongo_bot/cell_workers/nickname_pokemon.py index cb5ab8e741..d0c0355151 100644 --- a/pokemongo_bot/cell_workers/nickname_pokemon.py +++ b/pokemongo_bot/cell_workers/nickname_pokemon.py @@ -222,7 +222,7 @@ def _nickname_pokemon(self, pokemon): """ # We need id of the specific pokemon unstance to be able to rename it - instance_id = pokemon.id + instance_id = pokemon.unique_id if not instance_id: self.emit_event( 'api_error',