From 1fded58d8ba2c00841c0c6e297385b8d0f3a7af4 Mon Sep 17 00:00:00 2001 From: Eevee Date: Sun, 18 Apr 2010 22:43:33 -0700 Subject: [PATCH] Support natures in lookup. --- pokedex/db/tables.py | 1 + pokedex/lookup.py | 1 + 2 files changed, 2 insertions(+) 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, ) -- 2.7.4