From cc6d322b0c6ac86ac83216c7475aab90f090b57d Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 5 Apr 2018 20:06:38 -0500 Subject: [PATCH] Bump time for get_channel refresh --- src/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.cr b/src/helpers.cr index f973fc6a..3208ced8 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -512,7 +512,7 @@ def get_channel(id, client, db) if db.query_one?("SELECT EXISTS (SELECT true FROM channels WHERE id = $1)", id, as: Bool) channel = db.query_one("SELECT * FROM channels WHERE id = $1", id, as: InvidiousChannel) - if Time.now - channel.updated > 1.minutes + if Time.now - channel.updated > 10.minutes channel = fetch_channel(id, client, db) channel_array = channel.to_a args = arg_array(channel_array)