Skip to content
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

Fix: spawnpoint in gathered data #5352

Merged
merged 1 commit into from
Sep 10, 2016
Merged

Conversation

sohje
Copy link
Contributor

@sohje sohje commented Sep 10, 2016

Short Description:

Fix issues with incorrect spawnpoint_id in gathered data

@mention-bot
Copy link

@sohje, thanks for your PR! By analyzing the annotation information on this pull request, we identified @solderzzc, @YvesHenri and @chrisle to be potential reviewers

@YvesHenri
Copy link

Nice.

pokemon['encounter_id'] = pokemon['encounter_id']
pokemon['spawn_point_id'] = pokemon['spawn_point_id']
pokemon['encounter_id'] = pokemon.get('encounter_id', '')
pokemon['spawn_point_id'] = pokemon.get('spawn_point_id', '') or pokemon.get('spawnpoint_id', '')
Copy link
Contributor

Choose a reason for hiding this comment

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

Why two different attrs ("spawnpoint_id" or "spawn_point_id")? Does it vary or just don't know?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From pokemap its 'spawnpoint_id', from social - 'spawn_point_id'.
Dunno, mb in the future we will need them or remove completely.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK just wondering. Approving.

Choose a reason for hiding this comment

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

I'm not sure on social though, but I'm planning to enable dynamic param name mapping.

@sohje sohje merged commit 58257d2 into PokemonGoF:dev Sep 10, 2016
@sohje sohje deleted the fix-spawnpoints branch September 10, 2016 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants