From 366729a827284b0b462a1e44772289cba17861de Mon Sep 17 00:00:00 2001 From: Dave Morriss Date: Tue, 10 Oct 2023 17:55:44 +0100 Subject: [PATCH] Fixing days to next free slot templates/queries-index-mysql.tpl.html, templates/queries-index-sqlite.tpl.html: Enhanced the query that finds the next free slot (query_next_available_episode). Also made it compute the days to the slot from the current day. The query returns data for calling Date::Calc to compute the number of days, but this calculation is no longer necessary. Next release will remove this. templates/content-index.tpl.html: The number of days to the next free slot is reported here. The original Date::Calc computation which did this is no longer needed and has been removed since the query (query_next_available_episode) does it. --- templates/content-index.tpl.html | 14 ++--- templates/queries-index-mysql.tpl.html | 81 +++++++++++++++---------- templates/queries-index-sqlite.tpl.html | 81 +++++++++++++++---------- 3 files changed, 102 insertions(+), 74 deletions(-) diff --git a/templates/content-index.tpl.html b/templates/content-index.tpl.html index 81ba196..8dbca81 100644 --- a/templates/content-index.tpl.html +++ b/templates/content-index.tpl.html @@ -26,17 +26,15 @@
-

Welcome to HPR the Community Podcast

+

Welcome to HPR, the Community Podcast

- + + + - - -

We started producing shows as Today with a Techie on 2005-09-19, years, months, days ago. our shows are produced by listeners like you and can be on any topic that "are of interest to hackers". If you listen to HPR then please consider contributing one show a year. if you record your show now it could be released in days.

@@ -54,7 +52,7 @@

Hosted by on is flagged as and released under a license.
- +
@@ -72,7 +70,7 @@


Previous five weeks

-

diff --git a/templates/queries-index-mysql.tpl.html b/templates/queries-index-mysql.tpl.html index 1bb7a6d..8d60698 100644 --- a/templates/queries-index-mysql.tpl.html +++ b/templates/queries-index-mysql.tpl.html @@ -1,58 +1,73 @@