Skip to content

Commit

Permalink
[#2034] distinct now required before offset+limit
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Nov 5, 2014
1 parent 6060ee4 commit e4fb845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/model/activity.py
Expand Up @@ -80,7 +80,7 @@ def _activities_limit(q, limit, offset=None):
Return an SQLAlchemy query for all activities at an offset with a limit.
'''
import ckan.model as model
q = q.order_by(desc(model.Activity.timestamp))
q = q.order_by(desc(model.Activity.timestamp)).distinct()
if offset:
q = q.offset(offset)
if limit:
Expand Down

0 comments on commit e4fb845

Please sign in to comment.