Skip to content

Commit

Permalink
Bugfix: Shifted api_version to args. RocketMap#2077 (RocketMap#2087)
Browse files Browse the repository at this point in the history
* Shifted api_version to args.

* Bug Fix, Gym Info requests should work now :| Left behind code from a different branch, sorry guys :|

Thanks to user @333 at Discord for bringing this issue to my attention.
  • Loading branch information
neskk authored and sebastienvercammen committed Jun 13, 2017
1 parent 883426c commit 8cb7af3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pogom/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,8 @@ def search_worker_thread(args, account_queue, account_sets,
current_gym, len(gyms_to_update),
step_location[0], step_location[1])
time.sleep(random.random() + 2)
response = gym_request(api, account, step_location,
gym, args.api_version)
response = gym_request(api, step_location, gym,
args.api_version)

# Make sure the gym was in range. (Sometimes the
# API gets cranky about gyms that are ALMOST 1km
Expand Down

0 comments on commit 8cb7af3

Please sign in to comment.