Optimized Reihungstest-chronjob code

. Optimized code by retreiving data directly via model.
. Extended SQL query: study courses are now checked for active = true
This commit is contained in:
Cris
2018-12-06 12:37:22 +01:00
parent 1f6f56f71c
commit 38b195beeb
3 changed files with 17 additions and 30 deletions
-23
View File
@@ -81,27 +81,4 @@ class ReihungstestLib
return false;
}
/**
* Checks if there are active studyplans which have no public placement tests assigned yet.
* Only check studyplans that are
* - bachelor,
* - active,
* - set as online application
* - valid for 1st term
* @return type
*/
public function checkMissingReihungstest()
{
return $this->ci->ReihungstestModel->checkMissingReihungstest();
}
/** Gets amount of free places.
* Retrieves faculty and amount of free places for each public placement test date.
* @return array
*/
public function getFreePlaces()
{
return $this->ci->ReihungstestModel->getFreePlaces();
}
}