Skip to content

Commit

Permalink
CB-257: Fix review filtering based on an entity type
Browse files Browse the repository at this point in the history
  • Loading branch information
ferbncode authored and gentlecat committed May 29, 2017
1 parent 19576c2 commit b41bb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion critiquebrainz/frontend/views/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def browse():
return redirect(url_for('.browse'))
limit = 3 * 9 # 9 rows
offset = (page - 1) * limit
reviews, count = db_review.list_reviews(sort='created', limit=limit, offset=offset)
reviews, count = db_review.list_reviews(sort='created', limit=limit, offset=offset, entity_type=entity_type)
if not reviews:
if page - 1 > count / limit:
return redirect(url_for('review.browse', page=int(ceil(count/limit))))
Expand Down

0 comments on commit b41bb04

Please sign in to comment.