Fix listing of shows on HPR front page
Fix the number of shows listed by quantity not date.
This commit is contained in:
parent
c4b0361104
commit
d4e8422677
@ -28,13 +28,18 @@
|
|||||||
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
||||||
eps.date, eps.license, eps.duration,
|
eps.date, eps.license, eps.duration,
|
||||||
eps.title, eps.summary, eps.tags,
|
eps.title, eps.summary, eps.tags,
|
||||||
eps.series, eps.notes,
|
eps.notes,
|
||||||
hosts.local_image,
|
hosts.local_image,
|
||||||
hosts.hostid,
|
hosts.hostid,
|
||||||
hosts.host, hosts.email
|
hosts.host, hosts.email,
|
||||||
FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid
|
miniseries.name AS series
|
||||||
WHERE eps.date BETWEEN date(\'now\', \'-7 days\') AND date(\'now\')
|
FROM eps
|
||||||
ORDER BY date DESC ')
|
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>
|
<hr>
|
||||||
<article>
|
<article>
|
||||||
@ -73,12 +78,16 @@ ORDER BY date DESC ')
|
|||||||
substr(\'0000\' || eps.id, -4, 4) AS [id],
|
substr(\'0000\' || eps.id, -4, 4) AS [id],
|
||||||
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
||||||
eps.date, eps.license, eps.title, eps.summary,
|
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],
|
substr(\'0000\' || hosts.hostid, -4, 4) AS [hostid],
|
||||||
hosts.host, hosts.email, hosts.local_image
|
hosts.host, hosts.email, hosts.local_image,
|
||||||
FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid
|
miniseries.name AS series
|
||||||
WHERE eps.date BETWEEN date(\'now\', \'-35 days\') AND date(\'now\', \'-8 days\')
|
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
|
ORDER BY date DESC
|
||||||
|
LIMIT 30 OFFSET 10
|
||||||
')
|
')
|
||||||
%-->
|
%-->
|
||||||
<!--% show_summary(last_5_weeks_episodes) %-->
|
<!--% show_summary(last_5_weeks_episodes) %-->
|
||||||
|
Loading…
Reference in New Issue
Block a user