mirror of
https://github.com/iv-org/invidious.git
synced 2024-06-07 19:40:52 +00:00
Add fix to top_videos for empty database
This commit is contained in:
parent
d6b49bc0ae
commit
8956623347
@ -118,9 +118,13 @@ spawn do
|
||||
client = get_client(pool)
|
||||
|
||||
args = [] of String
|
||||
if top.size > 0
|
||||
(1..top.size).each { |i| args << "($#{i})," }
|
||||
args = args.join("")
|
||||
args = args.chomp(",")
|
||||
else
|
||||
next
|
||||
end
|
||||
|
||||
videos = [] of Video
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user