From db6c0bedaa67077575f7f52b85e5f07b3fbef46e Mon Sep 17 00:00:00 2001 From: Dave Morriss Date: Sat, 18 May 2024 15:54:52 +0100 Subject: [PATCH] Fixed four queries to correct the episode flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit templates/queries-correspondent-mysql.tpl.html, templates/queries-correspondent-sqlite.tpl.html, templates/queries-index-mysql.tpl.html, templates/queries-index-sqlite.tpl.html: All SQL queries used a CASE expression to return either 'Explicit' or 'Clean' depending on the 0/1 setting of the 'explicit' column. However, the TTĀ² templates using these queries were written to expect the numeric form. All the 'CASE' expressions have been replaced by the field name and now the correct flag is being displayed. --- templates/queries-correspondent-mysql.tpl.html | 2 +- templates/queries-correspondent-sqlite.tpl.html | 2 +- templates/queries-index-mysql.tpl.html | 2 +- templates/queries-index-sqlite.tpl.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/queries-correspondent-mysql.tpl.html b/templates/queries-correspondent-mysql.tpl.html index eaff574..b676977 100644 --- a/templates/queries-correspondent-mysql.tpl.html +++ b/templates/queries-correspondent-mysql.tpl.html @@ -1,7 +1,7 @@