From ca0cbc120573bca1f09062a1432f152a2e9a7446 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Thu, 21 May 2015 00:07:03 -0700 Subject: [PATCH] Remove use of Query.yield_per. SQLAlchemy 1.0 disallows yield_per with eagerloading[1]. Fixes #143. [1]: http://docs.sqlalchemy.org/en/rel_1_0/changelog/migration_10.html#joined-subquery-eager-loading-explicitly-disallowed-with-yield-per --- pokedex/lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/lookup.py b/pokedex/lookup.py index d8143b1..9c8f80b 100644 --- a/pokedex/lookup.py +++ b/pokedex/lookup.py @@ -195,7 +195,7 @@ class PokedexLookup(object): for cls in self.indexed_tables.values(): q = self.session.query(cls).order_by(cls.id) - for row in q.yield_per(5): + for row in q: row_key = dict(table=unicode(cls.__tablename__), row_id=unicode(row.id))