Support natures in lookup.

This commit is contained in:
Eevee 2010-04-18 22:43:33 -07:00
parent 78bff787f6
commit 55dd46fae7
2 changed files with 2 additions and 0 deletions

View file

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

View file

@ -60,6 +60,7 @@ class PokedexLookup(object):
tables.Item,
tables.Location,
tables.Move,
tables.Nature,
tables.Pokemon,
tables.Type,
)