Move Today with a Techie host SQL query to queries file
This commit is contained in:
@@ -13,31 +13,7 @@
|
|||||||
<!--% hpr_show_count = hpr_show_count +1; %-->
|
<!--% hpr_show_count = hpr_show_count +1; %-->
|
||||||
<!--% END %-->
|
<!--% END %-->
|
||||||
|
|
||||||
<!--% query_twt_show_count = DBI.prepare('
|
<!--% twt_shows_to_count = query_twt_show_count.execute(id); %-->
|
||||||
SELECT id
|
|
||||||
FROM twat_eps AS eps
|
|
||||||
WHERE eps.hostid = ?
|
|
||||||
')
|
|
||||||
%-->
|
|
||||||
<!--% query_twt_shows = DBI.prepare('
|
|
||||||
SELECT
|
|
||||||
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.notes,
|
|
||||||
hosts.local_image,
|
|
||||||
hosts.hostid,
|
|
||||||
hosts.host, hosts.email, hosts.profile,
|
|
||||||
miniseries.name AS series, miniseries.id AS seriesid
|
|
||||||
FROM twat_eps AS eps
|
|
||||||
INNER JOIN hosts ON eps.hostid = hosts.hostid
|
|
||||||
INNER JOIN miniseries ON eps.series = miniseries.id
|
|
||||||
WHERE hosts.hostid = ?
|
|
||||||
ORDER BY eps.id DESC
|
|
||||||
')
|
|
||||||
%-->
|
|
||||||
<!--% twt_shows_to_count = query_twt_show_count.execute(id); %-->
|
|
||||||
<!--% twt_shows = query_twt_shows.execute(id); %-->
|
<!--% twt_shows = query_twt_shows.execute(id); %-->
|
||||||
<!--% twt_show_count = 0 %-->
|
<!--% twt_show_count = 0 %-->
|
||||||
<!--% FOREACH show IN twt_shows_to_count %-->
|
<!--% FOREACH show IN twt_shows_to_count %-->
|
||||||
|
|||||||
@@ -22,3 +22,28 @@
|
|||||||
WHERE eps.hostid = ? AND eps.date < date(\'now\', \'+1 days\')
|
WHERE eps.hostid = ? AND eps.date < date(\'now\', \'+1 days\')
|
||||||
'
|
'
|
||||||
%-->
|
%-->
|
||||||
|
<!--% query_twt_show_count = DBI.prepare('
|
||||||
|
SELECT id
|
||||||
|
FROM twat_eps AS eps
|
||||||
|
WHERE eps.hostid = ?
|
||||||
|
')
|
||||||
|
%-->
|
||||||
|
<!--% query_twt_shows = DBI.prepare('
|
||||||
|
SELECT
|
||||||
|
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.notes,
|
||||||
|
hosts.local_image,
|
||||||
|
hosts.hostid,
|
||||||
|
hosts.host, hosts.email, hosts.profile,
|
||||||
|
miniseries.name AS series, miniseries.id AS seriesid
|
||||||
|
FROM twat_eps AS eps
|
||||||
|
INNER JOIN hosts ON eps.hostid = hosts.hostid
|
||||||
|
INNER JOIN miniseries ON eps.series = miniseries.id
|
||||||
|
WHERE hosts.hostid = ?
|
||||||
|
ORDER BY eps.id DESC
|
||||||
|
')
|
||||||
|
%-->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user