From 93082c0a455f0d99a22b2b81a1da66338984be20 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 12 Oct 2018 21:28:15 -0500 Subject: [PATCH] Remove migration points --- src/invidious/videos.cr | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 228aafbd7..e4ccd3d89 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -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)