From 6f0d0cd18b289ca017b0382fd1345a7315439402 Mon Sep 17 00:00:00 2001 From: kbinani Date: Wed, 27 Jul 2016 10:57:50 +0900 Subject: [PATCH] Fix Location caching doesn't work (#1031) --- pokemongo_bot/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pokemongo_bot/__init__.py b/pokemongo_bot/__init__.py index fdfc55b566..0c360843c2 100644 --- a/pokemongo_bot/__init__.py +++ b/pokemongo_bot/__init__.py @@ -465,11 +465,10 @@ def _set_starting_position(self): with open('data/last-location-%s.json' % (self.config.username)) as f: location_json = json.load(f) - - self.position = (location_json['lat'], + location = (location_json['lat'], location_json['lng'], 0.0) - print(self.position) - self.api.set_position(*self.position) + print(location) + self.api.set_position(*location) logger.log('') logger.log(