StoryRepository: positive_ranked should end at -1
This commit is contained in:
parent
c4b6772828
commit
e252d2d66e
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ private
|
|||
end
|
||||
|
||||
def positive_ranked(scope)
|
||||
scope.where("(CAST(upvotes AS integer) - CAST(downvotes AS integer)) >= -2")
|
||||
scope.where("(CAST(upvotes AS integer) - CAST(downvotes AS integer)) >= -1")
|
||||
end
|
||||
|
||||
def filter_tags(scope, tags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue