Skip to content

Commit

Permalink
Don't include reviews without text into the popular list
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2611 authored and gentlecat committed Aug 17, 2017
1 parent ff68102 commit fda0a45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions critiquebrainz/db/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ def get_popular(limit=None):
ORDER BY RANDOM()
) AS randomized_entity_ids
)
AND latest_revision.text IS NOT NULL
GROUP BY review.id, latest_revision.id
ORDER BY popularity
LIMIT :limit
Expand Down

0 comments on commit fda0a45

Please sign in to comment.