From d6b49bc0ae56e67bb3a7066d9311b2a754a082d6 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 13 Feb 2018 13:14:21 -0600 Subject: [PATCH] Fix rank_videos --- src/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.cr b/src/helpers.cr index 0d4ea6c3..9ce527a7 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -249,7 +249,7 @@ def rank_videos(db, n) top = top.map { |a, b| b } # Return top - return top[1..n] + return top[0..n - 1] end def make_client(url, context)