From 192d9945563e7251db3aef995391e6afbbf2a0b5 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Wed, 5 Nov 2025 21:20:11 -0500 Subject: [PATCH 1/4] Move Today with a Techie host SQL query to queries file --- templates/content-correspondent.tpl.html | 26 +----------------------- templates/queries-correspondent.tpl.html | 25 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/templates/content-correspondent.tpl.html b/templates/content-correspondent.tpl.html index d604db2..408dd28 100644 --- a/templates/content-correspondent.tpl.html +++ b/templates/content-correspondent.tpl.html @@ -13,31 +13,7 @@ - - - + diff --git a/templates/queries-correspondent.tpl.html b/templates/queries-correspondent.tpl.html index 3363afe..06eef61 100644 --- a/templates/queries-correspondent.tpl.html +++ b/templates/queries-correspondent.tpl.html @@ -22,3 +22,28 @@ WHERE eps.hostid = ? AND eps.date < date(\'now\', \'+1 days\') ' %--> + + + From 126e184126b13f7bafaef23613f819f4566e84e6 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Thu, 6 Nov 2025 20:52:43 -0500 Subject: [PATCH 2/4] Simplify host episode counting code Use the database to count the episodes. See https://stackoverflow.com/questions/1656748/how-can-i-fetch-a-single-count-value-from-a-database-with-dbi for explanation of Perl DBI calls. --- templates/content-correspondent.tpl.html | 21 ++++++++------------- templates/queries-correspondent.tpl.html | 12 ++++++------ 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/templates/content-correspondent.tpl.html b/templates/content-correspondent.tpl.html index 408dd28..9d3b867 100644 --- a/templates/content-correspondent.tpl.html +++ b/templates/content-correspondent.tpl.html @@ -3,22 +3,17 @@ - + - + - - - - + - - - - - - + + + + + diff --git a/templates/queries-correspondent.tpl.html b/templates/queries-correspondent.tpl.html index 06eef61..87997ad 100644 --- a/templates/queries-correspondent.tpl.html +++ b/templates/queries-correspondent.tpl.html @@ -17,18 +17,18 @@ ' %--> - - From ed6779fa5a6360f272c1834236ca4d785bcc0878 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Fri, 7 Nov 2025 19:25:42 -0500 Subject: [PATCH 3/4] Add comment tally cte to all episodes and host episodes queries --- templates/queries-correspondent.tpl.html | 15 ++++++++++++--- templates/queries-episodes.tpl.html | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/templates/queries-correspondent.tpl.html b/templates/queries-correspondent.tpl.html index 87997ad..bd0f637 100644 --- a/templates/queries-correspondent.tpl.html +++ b/templates/queries-correspondent.tpl.html @@ -1,5 +1,12 @@ - From aa722bda55081693dfa0c4abad145dd866d208ec Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Fri, 7 Nov 2025 19:34:56 -0500 Subject: [PATCH 4/4] Fix typo in logic to display comments tally --- templates/shared-episode-summary.tpl.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/shared-episode-summary.tpl.html b/templates/shared-episode-summary.tpl.html index 6d472e2..0216323 100644 --- a/templates/shared-episode-summary.tpl.html +++ b/templates/shared-episode-summary.tpl.html @@ -41,7 +41,7 @@ or .
- +