Skip to content

Commit

Permalink
Fix Location caching doesn't work (PokemonGoF#1031) (PokemonGoF#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbinani authored and MFizz committed Jul 29, 2016
1 parent 554187c commit a018822
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,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(
Expand Down

0 comments on commit a018822

Please sign in to comment.