diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-09 21:58:22 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-09 21:58:22 -0500 |
| commit | 89bda1d3db9ff87799d1bf0a32cf8edbfd362b41 (patch) | |
| tree | 41a14f3c02fedcedd49181cb2cf14d5940003f0e | |
| parent | e0ee1c3d79f51fa77e30718425a10411263a6b3e (diff) | |
| download | invidious-0.5.0.tar.gz invidious-0.5.0.tar.bz2 invidious-0.5.0.zip | |
Remove migration points0.5.0
| -rw-r--r-- | src/invidious/videos.cr | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 4718128b..fcc23894 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -377,14 +377,11 @@ def get_video(id, db, refresh = true) video = fetch_video(id) 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,\ published,description,language,author,ucid, allowed_regions, is_family_friendly,\ - genre, genre_url)\ + genre, genre_url, license)\ = (#{args}) WHERE id = $1", video_array) rescue ex db.exec("DELETE FROM videos * WHERE id = $1", id) @@ -395,9 +392,6 @@ def get_video(id, db, refresh = true) video = fetch_video(id) 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) |
