-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gym detail #312
base: develop
Are you sure you want to change the base?
Gym detail #312
Conversation
player_lng_degrees = self.location[1], | ||
gym_lat_degrees=fort.latitude, | ||
gym_lng_degrees=fort.longitude | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question, is there some documentation on this method somewhere? I have been successfully calling:
request.gym_get_info(gym_id=fort.id)
Without the lat/long parameters and it was working fine. I'm not doubting you it means I was probably doing it wrong, but is there some documentation I can see where you see the way to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is indeed the only reliable way I found for it a.t.m.
the pogodev API page isn't up to date, otherwise that could be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good man thanks for that! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good to me.
I believe this line needs to be removed in db.py Also occupied is how it is spelled, not ocuppied for time_occupied. Although that might be how Niantic is sending it to us? :) |
escaped the "é" in "Pokémon"
New gym detail implementation with the lastest API
ALTER TABLE forts ADD COLUMN name VARCHAR(255) AFTER id;
DELETE FROM fort_sightings;
DELETE FROM forts;
And run scripts/create_db.py