summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-04-11 18:36:36 -0500
committerOmar Roth <omarroth@hotmail.com>2018-04-11 18:36:36 -0500
commit029077a4e866715de099eae839f0c12c7f68b5a5 (patch)
tree23c904917d6447523836ac68eb6e45196818d1c7
parent0c5b92a6cba8fac0ed6cd2d56b1e1a9f2c2d81d4 (diff)
downloadinvidious-029077a4e866715de099eae839f0c12c7f68b5a5.tar.gz
invidious-029077a4e866715de099eae839f0c12c7f68b5a5.tar.bz2
invidious-029077a4e866715de099eae839f0c12c7f68b5a5.zip
Decrease time between channel updates
-rw-r--r--src/helpers.cr2
1 files changed, 1 insertions, 1 deletions
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)