veekun / pokedex

more than you ever wanted to know about Pokémon
MIT License
1.44k stars 637 forks source link

Multiple rows returned with uselist=False for eagerly-loaded attribute 'PokemonMove.machine #261

Closed magical closed 3 years ago

magical commented 5 years ago

Happens in one of the spline-pokedex tests. Haven't investigated what's triggering it.

lib/python2.7/site-packages/sqlalchemy/orm/loading.py:305: SAWarning: Multiple rows returned with uselist=False for eagerly-loaded attribute 'PokemonMove.machine

magical commented 4 years ago

This seems to be because Waterfall, Surf, and Fly are both HMs and TMs in S/M and US/UM. I'm not sure why we even have HMs for those games -- i guess they're in the data, but unused?

Parnassius commented 3 years ago

This should be now fixed (80bc35a764295a86dc09d49672265d9f8b7ce3a2)