PokemonGoers / PredictPokemon-2

In this project we will apply machine learning to establish the TLN (Time, Location and Name - that is where pokemons will appear, at what date and time, and which Pokemon will it be) prediction in Pokemon Go.
Apache License 2.0
9 stars 3 forks source link

Ignore sightings without pokemonId #77

Closed bensLine closed 7 years ago

bensLine commented 7 years ago

Requested in #76

jonas-he commented 7 years ago

@bensLine retested your fix and it does not solve the problem. It's because elem['pokemonId'] evaluates to undefined and as a result elem['pokemonId'] !== null evaluates to true (in the case of a non existing pokemonId)

Aurel-Roci commented 7 years ago

@jonas-he added a check for undefined id. Should be fine now

bensLine commented 7 years ago

sorry about that! thanks Aurel