From 029077a4e866715de099eae839f0c12c7f68b5a5 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 11 Apr 2018 18:36:36 -0500 Subject: [PATCH] Decrease time between channel updates --- src/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.cr b/src/helpers.cr index 95715d07..74ecfe22 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -513,7 +513,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 > 10.minutes + if Time.now - channel.updated > 1.minute channel = fetch_channel(id, client, db) channel_array = channel.to_a args = arg_array(channel_array)