PokeAPI/pokebase

Basculin-White-Striped Variant is Bugged

ImperialSquid opened this issue · 1 comments

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?

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).