Skip to content

Add gender and form.#345

Open
ibuckshot5 wants to merge 10 commits intoNoctem:developfrom
ibuckshot5:develop
Open

Add gender and form.#345
ibuckshot5 wants to merge 10 commits intoNoctem:developfrom
ibuckshot5:develop

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