mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add fix to top_videos for empty database
This commit is contained in:
parent
d6b49bc0ae
commit
8956623347
1 changed files with 7 additions and 3 deletions
|
@ -118,9 +118,13 @@ spawn do
|
||||||
client = get_client(pool)
|
client = get_client(pool)
|
||||||
|
|
||||||
args = [] of String
|
args = [] of String
|
||||||
(1..top.size).each { |i| args << "($#{i})," }
|
if top.size > 0
|
||||||
args = args.join("")
|
(1..top.size).each { |i| args << "($#{i})," }
|
||||||
args = args.chomp(",")
|
args = args.join("")
|
||||||
|
args = args.chomp(",")
|
||||||
|
else
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
videos = [] of Video
|
videos = [] of Video
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue