history: hide disabled coins from pool stats

This commit is contained in:
Tanguy Pruvot 2015-09-14 21:25:13 +02:00
parent 0388d7bc4b
commit 38efad3aa8

View file

@ -33,7 +33,7 @@ $total4 = 0;
$main_ids = array();
$algo = user()->getState('yaamp-algo');
$list = dbolist("SELECT coin_id FROM blocks WHERE coin_id IN (select id from coins where algo=:algo)
$list = dbolist("SELECT coin_id FROM blocks WHERE coin_id IN (select id from coins where algo=:algo and enable=1 and visible=1)
AND time>$t4 AND category!='orphan' GROUP BY coin_id ORDER BY coin_id DESC",
array(':algo'=>$algo)
);