forked from rho_n/hpr_generator
Remove superflous WHERE condition
This commit is contained in:
parent
1312e3d374
commit
2b4802508d
@ -7,7 +7,6 @@
|
|||||||
WITH episode_maxmin AS (
|
WITH episode_maxmin AS (
|
||||||
SELECT MAX(id) AS \'latest\', MIN(id) AS \'earliest\', ? AS \'id\'
|
SELECT MAX(id) AS \'latest\', MIN(id) AS \'earliest\', ? AS \'id\'
|
||||||
FROM twat_eps AS eps
|
FROM twat_eps AS eps
|
||||||
WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY)
|
|
||||||
),
|
),
|
||||||
episode_date AS (
|
episode_date AS (
|
||||||
SELECT eps.date
|
SELECT eps.date
|
||||||
@ -26,7 +25,6 @@
|
|||||||
FROM twat_eps AS eps
|
FROM twat_eps AS eps
|
||||||
INNER JOIN episode_date
|
INNER JOIN episode_date
|
||||||
ON eps.date > episode_date.date
|
ON eps.date > episode_date.date
|
||||||
WHERE eps.date < NOW()
|
|
||||||
)
|
)
|
||||||
SELECT eps.id, eps.date, eps.title, eps.duration,
|
SELECT eps.id, eps.date, eps.title, eps.duration,
|
||||||
eps.summary, eps.notes, eps.explicit, eps.license,
|
eps.summary, eps.notes, eps.explicit, eps.license,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
|
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
|
||||||
<!--% FOREACH episode IN DBI.query(
|
<!--% FOREACH episode IN DBI.query(
|
||||||
'select eps.id from twat_eps AS eps
|
'select eps.id from twat_eps AS eps'
|
||||||
where eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) '
|
|
||||||
) %-->
|
) %-->
|
||||||
,<!--% episode.id %-->
|
,<!--% episode.id %-->
|
||||||
<!--% END %-->
|
<!--% END %-->
|
||||||
|
Loading…
Reference in New Issue
Block a user