From d4e84226778e69895417a1751eda96ae9aaf31b4 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Mon, 1 Aug 2022 18:33:32 -0400 Subject: [PATCH] Fix listing of shows on HPR front page Fix the number of shows listed by quantity not date. --- templates/content-index.tpl.html | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/templates/content-index.tpl.html b/templates/content-index.tpl.html index ca13f0e..63bd910 100644 --- a/templates/content-index.tpl.html +++ b/templates/content-index.tpl.html @@ -28,13 +28,18 @@ CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit , eps.date, eps.license, eps.duration, eps.title, eps.summary, eps.tags, - eps.series, eps.notes, + eps.notes, hosts.local_image, hosts.hostid, - hosts.host, hosts.email -FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid -WHERE eps.date BETWEEN date(\'now\', \'-7 days\') AND date(\'now\') -ORDER BY date DESC ') + hosts.host, hosts.email, + miniseries.name AS series + 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 date DESC + LIMIT 10 + ') %-->
@@ -73,12 +78,16 @@ ORDER BY date DESC ') substr(\'0000\' || eps.id, -4, 4) AS [id], CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit , eps.date, eps.license, eps.title, eps.summary, - eps.series, eps.duration, eps.notes, eps.tags, + eps.duration, eps.notes, eps.tags, substr(\'0000\' || hosts.hostid, -4, 4) AS [hostid], - hosts.host, hosts.email, hosts.local_image - FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid - WHERE eps.date BETWEEN date(\'now\', \'-35 days\') AND date(\'now\', \'-8 days\') + hosts.host, hosts.email, hosts.local_image, + miniseries.name AS series + 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 date DESC + LIMIT 30 OFFSET 10 ') %-->