Fix listing of shows on HPR front page

Fix the number of shows listed by quantity not date.
This commit is contained in:
Roan Horning 2022-08-01 18:33:32 -04:00
parent c4b0361104
commit d4e8422677
Signed by: rho_n
GPG Key ID: 234AEF20B72D5769

View File

@ -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
')
%-->
<hr>
<article>
@ -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
')
%-->
<!--% show_summary(last_5_weeks_episodes) %-->