mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
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
This commit is contained in:
parent
7576f17967
commit
ca0cbc1205
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ class PokedexLookup(object):
|
||||||
for cls in self.indexed_tables.values():
|
for cls in self.indexed_tables.values():
|
||||||
q = self.session.query(cls).order_by(cls.id)
|
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_key = dict(table=unicode(cls.__tablename__),
|
||||||
row_id=unicode(row.id))
|
row_id=unicode(row.id))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue