From cc047bb5e5a94ed21414d6e50cb31fae49c9e858 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 26 Jul 2018 17:17:16 -0500 Subject: [PATCH] Update channel when fetched by thread --- src/invidious.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious.cr b/src/invidious.cr index 8f7bf2ee..de247592 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -138,6 +138,7 @@ channel_threads.times do |i| begin id = rs.read(String) channel = fetch_channel(id, client, PG_DB, false) + PG_DB.exec("UPDATE channels SET updated = $1 WHERE id = $2", Time.now, id) rescue ex STDOUT << id << " : " << ex.message << "\n" next