PokeAPI / pokebase

Python 3 wrapper for Pokéapi v2
BSD 3-Clause "New" or "Revised" License
286 stars 53 forks source link

Basculin-White-Striped Variant is Bugged #40

Open ImperialSquid opened 2 years ago

ImperialSquid commented 2 years ago

Description

While writing some code to get the variants of each species I noticed the third variant of basculin was returning None as the name not the expected "basculin-white-striped"

Code to Reproduce

import pokebase as pb

for var in pb.pokemon_species("basculin").varieties:
    print(var.pokemon.name)

Expected Results

basculin-red-striped
basculin-blue-striped
basculin-white-striped

Actual Results

basculin-red-striped
basculin-blue-striped
None

Notes

It's not just the name that is wrong, the entire results for the third variant are wrong, containing many fields that shouldn't be there

Also, looking at the resource directly in the browser shows the expected values so this seems to be an issue with pokebase not the api?

jemarq04 commented 1 year ago

Check out issue #46, it seems to be related to the cache that was created when you began making requests to the API. Deleting the cache will allow you to access the new information (though I believe that'll mean requests may take a bit longer for some time).