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

Add gender and form. #345

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

Add gender and form. #345

wants to merge 10 commits into from

Conversation

ibuckshot5
Copy link

Form and gender. Useful for unown and whenever breeding comes out.

To update an existing database, do this query:
ALTER TABLE mystery_sightings ADD gender SMALLINT(6) NULL;
ALTER TABLE mystery_sightings ADD form SMALLINT(6) NULL;
ALTER TABLE sightings ADD gender SMALLINT(6) NULL;
ALTER TABLE sightings ADD form SMALLINT(6) NULL;

@rileypool
Copy link

rileypool commented Aug 16, 2017

On my PokeAlarm notification I always get this result for Form: Grimer (Gender: ♂ - Form: <form>).

I'm not a Python coder, but from looking at the code and the database values it appears that your code sets the value to 0 if a form doesn't exist. If a form does exist, it is passed on to PokeAlarm.

Can your code be tweaked to pass the word Unavailable to PokeAlarm if the database value is 0? I've tried doing this in several different manners, but was unsuccessful.

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.

3 participants