Update SQL query to select specific host episodes

This commit is contained in:
Roan Horning 2022-08-05 12:07:36 -04:00
parent 47c51ec9a2
commit 30f0c9924a
Signed by: rho_n
GPG Key ID: 234AEF20B72D5769

View File

@ -8,15 +8,18 @@
%-->
<!--% query_shows = DBI.prepare('
SELECT
substr(\'0000\' || eps.id, -4, 4) AS [id],
eps.id,
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,
substr(\'0000\' || hosts.hostid, -4, 4) AS [host_id],
hosts.host, hosts.email
FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid
hosts.hostid,
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 hosts.hostid = ?
ORDER BY date DESC ')
%-->