* Adjust the logic of measuring item code library quantity.
This commit is contained in:
@@ -22,13 +22,13 @@ class count_of_codebase extends baseCalc
|
||||
{
|
||||
public $dataset = 'getRepos';
|
||||
|
||||
public $fieldList = array('count');
|
||||
public $fieldList = array('id');
|
||||
|
||||
public $result = 0;
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$this->result += $row->count;
|
||||
$this->result += 1;
|
||||
}
|
||||
|
||||
public function getResult($options = array())
|
||||
|
||||
@@ -495,9 +495,9 @@ class dataset
|
||||
* @access public
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public function getRepos()
|
||||
public function getRepos($fieldList)
|
||||
{
|
||||
return $this->dao->select('count(*) as count')
|
||||
return $this->dao->select($fieldList)
|
||||
->from(TABLE_REPO)
|
||||
->where('deleted')->eq('0')
|
||||
->query();
|
||||
|
||||
Reference in New Issue
Block a user