Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
Prevent pagination problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mardiros committed May 21, 2015
1 parent 77c5988 commit 76e7c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyshop/helpers/sqla.py
Expand Up @@ -42,7 +42,7 @@ def by_id(cls, session, id):
def find(cls, session, join=None, where=None, order_by=None, limit=None,
offset=None, count=None):
if count:
order_by = None # XXX posgresql doesn't like it
offset = limit = order_by = None # XXX posgresql doesn't like it
qry = cls.build_query(session, join, where, order_by, limit,
offset, count)
return qry.scalar() if count is not None else qry.all()
Expand Down

0 comments on commit 76e7c53

Please sign in to comment.