Remove migration points

pull/733/head
Omar Roth 2018-10-12 21:28:15 -05:00
rodzic 1a39faee75
commit 93082c0a45
1 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -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)