- Remove pivotModel::getUserYearTodos.
This commit is contained in:
@@ -661,24 +661,6 @@ class pivotModel extends model
|
||||
return $bugs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user todo stat in this year.
|
||||
*
|
||||
* @param array $accounts
|
||||
* @param int $year
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getUserYearTodos($accounts, $year)
|
||||
{
|
||||
return $this->dao->select("count(*) as count, sum(if((`status` != 'done'), 1, 0)) AS `undone`, sum(if((`status` = 'done'), 1, 0)) AS `done`")->from(TABLE_TODO)
|
||||
->where('LEFT(date, 4)')->eq($year)
|
||||
->andWhere('deleted')->eq('0')
|
||||
->andWhere('vision')->eq($this->config->vision)
|
||||
->beginIF($accounts)->andWhere('account')->in($accounts)->fi()
|
||||
->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user effort stat in this error.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user