From 1e925e97d87ac1a80650bdf02deb44aeca215698 Mon Sep 17 00:00:00 2001 From: 0x24d Date: Sat, 20 Nov 2021 13:08:42 +0000 Subject: [PATCH] Format new logic --- src/invidious/channels/videos.cr | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/invidious/channels/videos.cr b/src/invidious/channels/videos.cr index 5ac66e83..88669754 100644 --- a/src/invidious/channels/videos.cr +++ b/src/invidious/channels/videos.cr @@ -95,10 +95,10 @@ def get_channel_videos_response(ucid, page = 1, auto_generated = nil, sort_by = break if continuation.nil? || continuation.empty? channel_continuation = ChannelContinuation.new({ - id: ucid, - page: i, - sort_by: sort_by, - continuation: continuation + id: ucid, + page: i, + sort_by: sort_by, + continuation: continuation, }) PG_DB.exec("INSERT INTO channel_continuations VALUES ($1, $2, $3, $4) \ ON CONFLICT (id, page, sort_by) DO UPDATE SET continuation = $4", *channel_continuation.to_tuple) @@ -119,10 +119,10 @@ def get_channel_videos_response(ucid, page = 1, auto_generated = nil, sort_by = if !continuation.nil? && !continuation.empty? channel_continuation = ChannelContinuation.new({ - id: ucid, - page: page + 1, - sort_by: sort_by, - continuation: continuation + id: ucid, + page: page + 1, + sort_by: sort_by, + continuation: continuation, }) PG_DB.exec("INSERT INTO channel_continuations VALUES ($1, $2, $3, $4) \ ON CONFLICT (id, page, sort_by) DO UPDATE SET continuation = $4", *channel_continuation.to_tuple)