X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/03ebe5e0732b0ae482bcbaa553eaac28ca78761c..ab5578ed5a05f13c2625fcd8aad1df889c817f60:/pokedex/lookup.py?ds=sidebyside diff --git a/pokedex/lookup.py b/pokedex/lookup.py index 5287c72..d9b46cd 100644 --- a/pokedex/lookup.py +++ b/pokedex/lookup.py @@ -143,7 +143,7 @@ class PokedexLookup(object): # especially when e.g. German names are very similar to English names speller_entries = [] for cls in self.indexed_tables.values(): - q = session.query(cls) + q = self.session.query(cls) for row in q.yield_per(5): row_key = dict(table=unicode(cls.__tablename__),