diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 3e10259..491bfd2 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -268,6 +268,7 @@ class Move(TableBase): class Nature(TableBase): __tablename__ = 'natures' + __singlename__ = 'nature' id = Column(Integer, primary_key=True, nullable=False) name = Column(Unicode(8), nullable=False) decreased_stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False) diff --git a/pokedex/lookup.py b/pokedex/lookup.py index d9b46cd..9e2ead6 100644 --- a/pokedex/lookup.py +++ b/pokedex/lookup.py @@ -60,6 +60,7 @@ class PokedexLookup(object): tables.Item, tables.Location, tables.Move, + tables.Nature, tables.Pokemon, tables.Type, )