forked from midou/invidious
Remove migration points
This commit is contained in:
parent
1a39faee75
commit
93082c0a45
@ -491,9 +491,6 @@ def get_video(id, db, proxies = {} of String => Array({ip: String, port: Int32})
|
|||||||
video = fetch_video(id, proxies)
|
video = fetch_video(id, proxies)
|
||||||
video_array = video.to_a
|
video_array = video.to_a
|
||||||
|
|
||||||
# Migration point
|
|
||||||
video_array = video_array[0..-2]
|
|
||||||
|
|
||||||
args = arg_array(video_array[1..-1], 2)
|
args = arg_array(video_array[1..-1], 2)
|
||||||
|
|
||||||
db.exec("UPDATE videos SET (info,updated,title,views,likes,dislikes,wilson_score,\
|
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 = fetch_video(id, proxies)
|
||||||
video_array = video.to_a
|
video_array = video.to_a
|
||||||
|
|
||||||
# Migration point
|
|
||||||
video_array = video_array[0..-2]
|
|
||||||
|
|
||||||
args = arg_array(video_array)
|
args = arg_array(video_array)
|
||||||
|
|
||||||
db.exec("INSERT INTO videos VALUES (#{args}) ON CONFLICT (id) DO NOTHING", video_array)
|
db.exec("INSERT INTO videos VALUES (#{args}) ON CONFLICT (id) DO NOTHING", video_array)
|
||||||
|
Loading…
Reference in New Issue
Block a user