GithubHelp home page GithubHelp logo

Comments (3)

dnsBlah avatar dnsBlah commented on June 17, 2024

use this for getting pokemon id

pokemonId = getattr(pokemon, "pokemon_id", None)
            if not pokemonId:
                pokemonId = pokemon.pokemon_data.pokemon_id

There is not always a pokemon_data inside pokemon. Depends on the type of pokemon you find

from pokemongo-api.

dmadisetti avatar dmadisetti commented on June 17, 2024

? Do you have any examples @dnsBlah

from pokemongo-api.

dnsBlah avatar dnsBlah commented on June 17, 2024

lately I found that catchable and nearby pokemon are 1 and the same, I do a double check after I filter the pokemon out, I loop to only return unique encounter ids
sometimes its double
simetimes its not
one of the 2 types has pokemon_id directly and missing pokemon_data

thats why I get the id as mentioned in my previous comment

from pokemongo-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.