From 979c8b43e55e46ce2c60d3e1e937607027d8bb5d Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Fri, 21 Oct 2022 20:43:22 -0400 Subject: [PATCH] Convert twat episode page queries from SQLite to MySQL --- templates/content-twat_episode.tpl.html | 4 ++-- templates/ids-twat_episode.tpl.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/content-twat_episode.tpl.html b/templates/content-twat_episode.tpl.html index ef9d965..7840b3c 100644 --- a/templates/content-twat_episode.tpl.html +++ b/templates/content-twat_episode.tpl.html @@ -7,7 +7,7 @@ WITH episode_maxmin AS ( SELECT MAX(id) AS \'latest\', MIN(id) AS \'earliest\', ? AS \'id\' FROM twat_eps AS eps - WHERE eps.date < date (\'now\', \'+1 days\') + WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) ), episode_date AS ( SELECT eps.date @@ -26,7 +26,7 @@ FROM twat_eps AS eps INNER JOIN episode_date ON eps.date > episode_date.date - WHERE eps.date < date (\'now\') + 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 2609648..5291f72 100644 --- a/templates/ids-twat_episode.tpl.html +++ b/templates/ids-twat_episode.tpl.html @@ -1,7 +1,7 @@ ,