From 126e184126b13f7bafaef23613f819f4566e84e6 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Thu, 6 Nov 2025 20:52:43 -0500 Subject: [PATCH] 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 @@ ' %--> - -