Skip to content

Commit

Permalink
added NM and LO logs to 'needs_maintenance' new logs view
Browse files Browse the repository at this point in the history
  • Loading branch information
following5 committed Mar 8, 2016
1 parent c3ce610 commit 1f37893
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions htdocs/newlogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

if (isset($_GET['for_maintenance']))
{
$add_where = "AND {fromtable}.`type` IN (2,3) AND DATEDIFF({fromtable}.`date_created`, {fromtable}.`date`) < 7 ";
$add_where = "AND ({fromtable}.`type` IN (2,3) OR {fromtable}.`needs_maintenance`=2 OR {fromtable}.`listing_outdated`=2) AND DATEDIFF({fromtable}.`date_created`, {fromtable}.`date`) < 7 ";
$tpl->cache_id .= "|fm";
$logcount *= 2;
}
Expand All @@ -124,7 +124,9 @@
sql_temp_table_slave('loglist0');
sql_slave("
CREATE TEMPORARY TABLE &loglist0
(SELECT `id`, `cache_id`, `user_id`, `date_created`, `date`, `type`
(SELECT
`id`, `cache_id`, `user_id`, `date_created`, `date`, `type`,
`needs_maintenance`, `listing_outdated`
FROM `cache_logs`
ORDER BY `date_created` DESC
LIMIT " . (4*$logcount) . "
Expand Down

0 comments on commit 1f37893

Please sign in to comment.