Clean up Video class

This commit is contained in:
Omar Roth 2018-03-04 08:54:19 -06:00
parent aa0864f87d
commit f0b33b2975
2 changed files with 18 additions and 21 deletions

View file

@ -150,11 +150,8 @@ spawn do
top = rank_videos(PG_DB, 40)
client = get_client(youtube_pool)
args = [] of String
if top.size > 0
(1..top.size).each { |i| args << "($#{i})," }
args = args.join("")
args = args.chomp(",")
args = arg_array(top)
else
next
end