diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-10-12 21:28:15 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-10-12 21:28:15 -0500 |
| commit | 93082c0a455f0d99a22b2b81a1da66338984be20 (patch) | |
| tree | 0739b910300480a0fd8121a1b43ef02c28aad108 /src | |
| parent | 1a39faee75cb1c5ff8545444f3e653e2958d5452 (diff) | |
| download | invidious-93082c0a455f0d99a22b2b81a1da66338984be20.tar.gz invidious-93082c0a455f0d99a22b2b81a1da66338984be20.tar.bz2 invidious-93082c0a455f0d99a22b2b81a1da66338984be20.zip | |
Remove migration points
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 228aafbd..e4ccd3d8 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) |
