Support natures in lookup.
authorEevee <git@veekun.com>
Mon, 19 Apr 2010 05:43:33 +0000 (22:43 -0700)
committerEevee <git@veekun.com>
Mon, 19 Apr 2010 05:43:33 +0000 (22:43 -0700)
pokedex/db/tables.py
pokedex/lookup.py

index 3e10259..491bfd2 100644 (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)
index d9b46cd..9e2ead6 100644 (file)
@@ -60,6 +60,7 @@ class PokedexLookup(object):
             tables.Item,
             tables.Location,
             tables.Move,
+            tables.Nature,
             tables.Pokemon,
             tables.Type,
         )