projects
/
zzz-pokedex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Why am I importing sqlalchemy.databases.mysql...?
[zzz-pokedex.git]
/
pokedex
/
__init__.py
diff --git
a/pokedex/__init__.py
b/pokedex/__init__.py
index
6a4ab95
..
499d8d2
100644
(file)
--- a/
pokedex/__init__.py
+++ b/
pokedex/__init__.py
@@
-54,11
+54,11
@@
def command_load(*args):
def command_setup(*args):
session = connect()
pokedex.db.load.load(session, verbose=False, drop_tables=True)
def command_setup(*args):
session = connect()
pokedex.db.load.load(session, verbose=False, drop_tables=True)
- pokedex.lookup.
open_index
(session=session, recreate=True)
+ pokedex.lookup.
PokedexLookup
(session=session, recreate=True)
def command_lookup(name):
def command_lookup(name):
- results = pokedex.lookup.lookup(name)
+ results = pokedex.lookup.
PokedexLookup().
lookup(name)
if not results:
print "No matches."
elif results[0].exact:
if not results:
print "No matches."
elif results[0].exact: