Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Bug fix for notifier #27

Closed
traversc opened this issue Jul 23, 2016 · 7 comments
Closed

Bug fix for notifier #27

traversc opened this issue Jul 23, 2016 · 7 comments

Comments

@traversc
Copy link

Starting from line 719:

    pokemons[poke.SpawnPointId] = pokemon_obj

    print "Pokemon :", pokemon_obj

    if poke.SpawnPointId not in pokemons:
        notifier.pokemon_found(pokemon_obj)

Adding the object to the array needs to come after the if statement, otherwise it will never trigger.

@paperc07
Copy link

mine is already like yours and it's still not working

@padenshorey
Copy link

Just put that first line after the other 3 lines and it'll work.

@paperc07
Copy link

yeah I just did this and its working

  if poke.SpawnPointId not in pokemons:
    pokemons[poke.SpawnPointId] = pokemon_obj
    notifier.pokemon_found(pokemon_obj)

@padenshorey
Copy link

Remove the indent on the last line or it'll be part of the if statement (which you don't want).

@padenshorey
Copy link

Oh my bad, I misread it. That should work fine.

@paperc07
Copy link

yeah I was going to say its working, now I am just letting it run to make sure its auto updating using my google api key in the credentials.json file

@malosaa
Copy link

malosaa commented Jul 23, 2016

is it fixed ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants