mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Had to remove band from query as well.
This commit is contained in:
@@ -153,7 +153,7 @@ class was extends CI_Model {
|
||||
|
||||
function getSummaryByBand($band, $station_id)
|
||||
{
|
||||
$sql = "SELECT thcv.col_band, count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv";
|
||||
$sql = "SELECT count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv";
|
||||
|
||||
$sql .= " where station_id = " . $station_id;
|
||||
|
||||
@@ -173,7 +173,7 @@ class was extends CI_Model {
|
||||
|
||||
function getSummaryByBandConfirmed($band, $station_id)
|
||||
{
|
||||
$sql = "SELECT thcv.col_band, count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv";
|
||||
$sql = "SELECT count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv";
|
||||
|
||||
$sql .= " where station_id = " . $station_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user