forked from rho_n/hpr_generator
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 ,
|
||||
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) %-->
|
||||
|
Loading…
Reference in New Issue
Block a user