Fix rank_videos

This commit is contained in:
Omar Roth 2018-02-13 13:14:21 -06:00
parent e46ce28939
commit d6b49bc0ae

View file

@ -249,7 +249,7 @@ def rank_videos(db, n)
top = top.map { |a, b| b } top = top.map { |a, b| b }
# Return top # Return top
return top[1..n] return top[0..n - 1]
end end
def make_client(url, context) def make_client(url, context)