From 4af117fb7a53c86a9edd4463158b8dddc94395e5 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Fri, 21 Oct 2022 19:52:53 -0400 Subject: [PATCH] Convert episodes page queries from SQLite to MySQL --- templates/content-episodes.tpl.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/content-episodes.tpl.html b/templates/content-episodes.tpl.html index a1683db..a746c94 100644 --- a/templates/content-episodes.tpl.html +++ b/templates/content-episodes.tpl.html @@ -19,8 +19,8 @@ FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id - WHERE eps.date < date(\'now\', \'+1 days\') - ORDER BY eps.id + 0 DESC + WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) + ORDER BY eps.id DESC ') %--> @@ -42,7 +42,7 @@ FROM twat_eps as eps INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id - ORDER BY eps.id + 0 DESC + ORDER BY eps.id DESC ') %-->