mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Remove migration points
This commit is contained in:
parent
1a39faee75
commit
93082c0a45
1 changed files with 0 additions and 6 deletions
|
@ -491,9 +491,6 @@ def get_video(id, db, proxies = {} of String => Array({ip: String, port: Int32})
|
|||
video = fetch_video(id, proxies)
|
||||
video_array = video.to_a
|
||||
|
||||
# Migration point
|
||||
video_array = video_array[0..-2]
|
||||
|
||||
args = arg_array(video_array[1..-1], 2)
|
||||
|
||||
db.exec("UPDATE videos SET (info,updated,title,views,likes,dislikes,wilson_score,\
|
||||
|
@ -509,9 +506,6 @@ def get_video(id, db, proxies = {} of String => Array({ip: String, port: Int32})
|
|||
video = fetch_video(id, proxies)
|
||||
video_array = video.to_a
|
||||
|
||||
# Migration point
|
||||
video_array = video_array[0..-2]
|
||||
|
||||
args = arg_array(video_array)
|
||||
|
||||
db.exec("INSERT INTO videos VALUES (#{args}) ON CONFLICT (id) DO NOTHING", video_array)
|
||||
|
|
Loading…
Reference in a new issue