Skip to content

Commit

Permalink
Fix Location caching doesn't work (#1031) (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbinani authored and solderzzc committed Jul 27, 2016
1 parent cc8992c commit 24a6649
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 @@ -449,11 +449,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

2 comments on commit 24a6649

@Teiby1
Copy link

@Teiby1 Teiby1 commented on 24a6649 Jul 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[2016-07-27 06:52:43] [x] Address found: 47.9949189,7.853057384
[2016-07-27 06:52:43] [x] Position in-game set as: (47.9949189, 7.8530573, 0.0)
[2016-07-27 06:52:57] [#] Walking from (2.3e-322, 3.5e-323) to (47.9949189, 7.8530573) for approx. 1295769.00 seconds

Clean installation, so no location cache available.

@DimaVIII
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.