From c8135d811d8930e06f32cb7e0d5a8f46d507b25c Mon Sep 17 00:00:00 2001 From: Dave Morriss Date: Fri, 20 Oct 2023 13:37:37 +0100 Subject: [PATCH] Bug fix of query to find days to next free slot templates/queries-index-mysql.tpl.html, templates/queries-index-sqlite.tpl.html: Rather than driving the search from the eps table itself, this version makes a counter that generates slot numbers from the current show number to the highest show number in the system. The counter is used to interrogate the eps table to find the first empty slot. This sems to be a more reliable approach (but time will tell). --- templates/queries-index-mysql.tpl.html | 44 +++++++++++++------------ templates/queries-index-sqlite.tpl.html | 4 +-- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/templates/queries-index-mysql.tpl.html b/templates/queries-index-mysql.tpl.html index 9172907..5c4ad9b 100644 --- a/templates/queries-index-mysql.tpl.html +++ b/templates/queries-index-mysql.tpl.html @@ -1,29 +1,31 @@