minor changes

parent 1e0f560c
......@@ -275,6 +275,11 @@ class WSConsumer extends ControllerBase
public function transitionToBPeriod() {
return (new JsonResponse([
'message' => "no code",
]))
->setStatusCode(Response::HTTP_INTERNAL_SERVER_ERROR);
//μετάπτωση σε δεύτερη περίοδο όλων των αιτήσεων για ΕΠΑΛ που οι μαθητές δεν προάχθηκαν
$sCon = $this->connection
->select('epal_student', 'eStudent')
......
......@@ -2003,7 +2003,6 @@ public function getStudentPerSchoolGel(Request $request, $classId)
}
try {
$authToken = $request->headers->get('PHP_AUTH_USER');
......@@ -2027,30 +2026,6 @@ public function getStudentPerSchoolGel(Request $request, $classId)
//$this->logger->warning($gelId."kvdikos sxoleiou".$classId);
$schools = $this->entityTypeManager->getStorage('gel_school')->loadByProperties(array('id' => $gelId));
$school = reset($schools);
$operation_shift = $schools->operation_shift->value;
if ( $operation_shift != 'ΗΜΕΡΗΣΙΟ')
{
$this->logger->warning($operation_shift."esperino");
if ($classId == 4)
{
$classIdNew = 'Α';
}
elseif ($classId == 5)
{
$classIdNew = 'Β';
}
elseif ($classId == 6)
{
$classIdNew = 'Γ';
}
else
{
$classIdNew = 'Δ';
}
}
if (!$school) {
$this->logger->warning('no access to this school='.$user->id());
return $this->respondWithStatus([
......@@ -2073,8 +2048,6 @@ public function getStudentPerSchoolGel(Request $request, $classId)
$studentPerSchool = $this->entityTypeManager->getStorage('gelstudenthighschool')->loadByProperties(array('school_id' => $gelId, 'taxi' => $classIdNew));
if ($classIdNew === "Α")
{
$existingstudents =array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment