Compare commits

..

No commits in common. "eedd954a11a597f22910278ff6f388d65c4f9082" and "1853715a19ee747d2873816814a221e42ffcb5ac" have entirely different histories.

3 changed files with 8 additions and 15 deletions

View File

@ -3,10 +3,15 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% PROCESS "queries-correspondent-${constants.database}.tpl.html" %--> <!--% PROCESS "queries-correspondent-${constants.database}.tpl.html" %-->
<!--% USE DBI(constants.driver, constants.user, constants.password) %--> <!--% USE DBI(constants.driver, constants.user, constants.password) %-->
<!--% query_hpr_show_count = DBI.prepare('
SELECT id
FROM eps
WHERE eps.hostid = ?
')
%-->
<!--% results_hpr_shows = DBI.prepare(query_hpr_shows) <!--% results_hpr_shows = DBI.prepare(query_hpr_shows)
%--> %-->
<!--% results_hpr_show_count = DBI.prepare(query_hpr_show_count) %--> <!--% hpr_shows_to_count = query_hpr_show_count.execute(id); %-->
<!--% hpr_shows_to_count = results_hpr_show_count.execute(id); %-->
<!--% hpr_shows = results_hpr_shows.execute(id); %--> <!--% hpr_shows = results_hpr_shows.execute(id); %-->
<!--% hpr_show_count = 0 %--> <!--% hpr_show_count = 0 %-->
<!--% FOREACH show IN hpr_shows_to_count %--> <!--% FOREACH show IN hpr_shows_to_count %-->

View File

@ -1,5 +1,5 @@
<!--% query_hpr_shows = ' <!--% query_hpr_shows = '
SELECT SELECT
eps.id, eps.id,
eps.explicit, eps.explicit,
eps.date, eps.license, eps.duration, eps.date, eps.license, eps.duration,
@ -16,9 +16,3 @@
ORDER BY eps.id DESC ORDER BY eps.id DESC
' '
%--> %-->
<!--% query_hpr_show_count = '
SELECT id
FROM eps
WHERE eps.hostid = ? AND eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY)
'
%-->

View File

@ -16,9 +16,3 @@
ORDER BY eps.id + 0 DESC ORDER BY eps.id + 0 DESC
' '
%--> %-->
<!--% query_hpr_show_count = '
SELECT id
FROM eps
WHERE eps.hostid = ? AND eps.date < date(\'now\', \'+1 days\')
'
%-->