forked from rho_n/hpr_generator
Update SQL query to select specific host episodes
This commit is contained in:
parent
47c51ec9a2
commit
30f0c9924a
@ -8,15 +8,18 @@
|
|||||||
%-->
|
%-->
|
||||||
<!--% query_shows = DBI.prepare('
|
<!--% query_shows = DBI.prepare('
|
||||||
SELECT
|
SELECT
|
||||||
substr(\'0000\' || eps.id, -4, 4) AS [id],
|
eps.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.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,
|
||||||
substr(\'0000\' || hosts.hostid, -4, 4) AS [host_id],
|
hosts.hostid,
|
||||||
hosts.host, hosts.email
|
hosts.host, hosts.email,
|
||||||
FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid
|
miniseries.name AS series
|
||||||
|
FROM eps
|
||||||
|
INNER JOIN hosts ON eps.hostid = hosts.hostid
|
||||||
|
INNER JOIN miniseries ON eps.series = miniseries.id
|
||||||
WHERE hosts.hostid = ?
|
WHERE hosts.hostid = ?
|
||||||
ORDER BY date DESC ')
|
ORDER BY date DESC ')
|
||||||
%-->
|
%-->
|
||||||
|
Loading…
Reference in New Issue
Block a user