From 5612eeed42ea5563d01ae33434486fee13153798 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Fri, 21 Oct 2022 20:07:53 -0400 Subject: [PATCH] Convert episode page queries from SQLite to MySQL --- templates/content-episode.tpl.html | 4 ++-- templates/ids-episode.tpl.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/content-episode.tpl.html b/templates/content-episode.tpl.html index 4920449..c3987c2 100644 --- a/templates/content-episode.tpl.html +++ b/templates/content-episode.tpl.html @@ -7,7 +7,7 @@ WITH episode_maxmin AS ( SELECT MAX(id) AS \'latest\', MIN(id) AS \'earliest\', ? AS \'id\' FROM 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 eps INNER JOIN episode_date ON eps.date > episode_date.date - WHERE eps.date < date (\'now\') + WHERE eps.date < NOW() ), comment_tallies AS ( SELECT diff --git a/templates/ids-episode.tpl.html b/templates/ids-episode.tpl.html index 1271a26..bd55bb0 100644 --- a/templates/ids-episode.tpl.html +++ b/templates/ids-episode.tpl.html @@ -1,7 +1,7 @@ ,