projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab5578e
)
Support natures in lookup.
author
Eevee
<git@veekun.com>
Mon, 19 Apr 2010 05:43:33 +0000
(22:43 -0700)
committer
Eevee
<git@veekun.com>
Mon, 19 Apr 2010 05:43:33 +0000
(22:43 -0700)
pokedex/db/tables.py
patch
|
blob
|
history
pokedex/lookup.py
patch
|
blob
|
history
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
3e10259
..
491bfd2
100644
(file)
--- 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
(file)
--- 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,
)