From: Eevee Date: Mon, 19 Apr 2010 05:43:33 +0000 (-0700) Subject: Support natures in lookup. X-Git-Tag: veekun-promotions/2010050901~43 X-Git-Url: http://git.veekun.com/zzz-pokedex.git/commitdiff_plain/1fded58d8ba2c00841c0c6e297385b8d0f3a7af4 Support natures in lookup. --- 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, )