From 2b4802508d12675fb7962537125dd7a5eae09caa Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Mon, 28 Nov 2022 19:55:51 -0500 Subject: [PATCH] Remove superflous WHERE condition --- templates/content-twat_episode.tpl.html | 2 -- templates/ids-twat_episode.tpl.html | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/content-twat_episode.tpl.html b/templates/content-twat_episode.tpl.html index 7840b3c..a408bea 100644 --- a/templates/content-twat_episode.tpl.html +++ b/templates/content-twat_episode.tpl.html @@ -7,7 +7,6 @@ WITH episode_maxmin AS ( SELECT MAX(id) AS \'latest\', MIN(id) AS \'earliest\', ? AS \'id\' FROM twat_eps AS eps - WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) ), episode_date AS ( SELECT eps.date @@ -26,7 +25,6 @@ FROM twat_eps AS eps INNER JOIN episode_date ON eps.date > episode_date.date - WHERE eps.date < NOW() ) SELECT eps.id, eps.date, eps.title, eps.duration, eps.summary, eps.notes, eps.explicit, eps.license, diff --git a/templates/ids-twat_episode.tpl.html b/templates/ids-twat_episode.tpl.html index 5291f72..d7eaa0c 100644 --- a/templates/ids-twat_episode.tpl.html +++ b/templates/ids-twat_episode.tpl.html @@ -1,7 +1,6 @@ ,