Closed LAMaglan closed 4 months ago
Previously, get_pokemon only returned a dict, stats. Now, it returns a tuple: (stats, sprites, types)
get_pokemon
stats
(stats, sprites, types)
This was not taken into account in the battle endpoint, which expected a dict. From
battle
pokemon1_stats = await get_pokemon(pokemon1_name) pokemon2_stats = await get_pokemon(pokemon2_name)
To
pokemon1_stats, _, _ = await get_pokemon(pokemon1_name) pokemon2_stats, _, _ = await get_pokemon(pokemon2_name)
Previously,
get_pokemon
only returned a dict,stats
. Now, it returns a tuple:(stats, sprites, types)
This was not taken into account in the
battle
endpoint, which expected a dict. FromTo