mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Support natures in lookup.
This commit is contained in:
parent
78bff787f6
commit
55dd46fae7
2 changed files with 2 additions and 0 deletions
|
@ -268,6 +268,7 @@ class Move(TableBase):
|
||||||
|
|
||||||
class Nature(TableBase):
|
class Nature(TableBase):
|
||||||
__tablename__ = 'natures'
|
__tablename__ = 'natures'
|
||||||
|
__singlename__ = 'nature'
|
||||||
id = Column(Integer, primary_key=True, nullable=False)
|
id = Column(Integer, primary_key=True, nullable=False)
|
||||||
name = Column(Unicode(8), nullable=False)
|
name = Column(Unicode(8), nullable=False)
|
||||||
decreased_stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False)
|
decreased_stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False)
|
||||||
|
|
|
@ -60,6 +60,7 @@ class PokedexLookup(object):
|
||||||
tables.Item,
|
tables.Item,
|
||||||
tables.Location,
|
tables.Location,
|
||||||
tables.Move,
|
tables.Move,
|
||||||
|
tables.Nature,
|
||||||
tables.Pokemon,
|
tables.Pokemon,
|
||||||
tables.Type,
|
tables.Type,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue