mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-01-05 23:42:21 +00:00
Correction d'un problème dans la détection des équipes n'ayant pas répondu à la phase en cours
This commit is contained in:
parent
deff252740
commit
c3ba600f07
@ -68,12 +68,13 @@ switch (Phase::getCurrentPhase()) {
|
||||
. " JOIN `questions` AS `q4` ON `q4`.`from` = `q1`.`from` AND `q4`.`number` = 3"
|
||||
. " JOIN `questions` AS `q5` ON `q5`.`from` = `q1`.`from` AND `q5`.`number` = 4"
|
||||
. " JOIN `questions` AS `q6` ON `q6`.`from` = `q1`.`from` AND `q6`.`number` = 5"
|
||||
. " WHERE `q1`.`question` != '" . Question::DEFAULT_QUESTIONS[0] . "'"
|
||||
. " WHERE `q1`.`number` = 0"
|
||||
. " AND (`q1`.`question` != '" . Question::DEFAULT_QUESTIONS[0] . "'"
|
||||
. " OR `q2`.`question` != '" . Question::DEFAULT_QUESTIONS[1] . "'"
|
||||
. " OR `q3`.`question` != '" . Question::DEFAULT_QUESTIONS[2] . "'"
|
||||
. " OR `q4`.`question` IS NOT NULL"
|
||||
. " OR `q5`.`question` IS NOT NULL"
|
||||
. " OR `q6`.`question` IS NOT NULL)"
|
||||
. " OR `q6`.`question` IS NOT NULL))"
|
||||
. " AND `validation_status` = '" . ValidationStatus::getName(ValidationStatus::VALIDATED) . "'"
|
||||
. " AND `year` = $YEAR;");
|
||||
break;
|
||||
@ -85,12 +86,13 @@ switch (Phase::getCurrentPhase()) {
|
||||
. " JOIN `questions` AS `q4` ON `q4`.`to` = `q1`.`to` AND `q4`.`number` = 3"
|
||||
. " JOIN `questions` AS `q5` ON `q5`.`to` = `q1`.`to` AND `q5`.`number` = 4"
|
||||
. " JOIN `questions` AS `q6` ON `q6`.`to` = `q1`.`to` AND `q6`.`number` = 5"
|
||||
. " WHERE `q1`.`answer` IS NOT NULL"
|
||||
. " WHERE `q1`.`question` = 0"
|
||||
. " AND (`q1`.`answer` IS NOT NULL"
|
||||
. " OR `q2`.`answer` IS NOT NULL"
|
||||
. " OR `q3`.`answer` IS NOT NULL"
|
||||
. " OR `q4`.`answer` IS NOT NULL"
|
||||
. " OR `q5`.`answer` IS NOT NULL"
|
||||
. " OR `q6`.`answer` IS NOT NULL)"
|
||||
. " OR `q6`.`answer` IS NOT NULL))"
|
||||
. " AND `validation_status` = '" . ValidationStatus::getName(ValidationStatus::VALIDATED) . "'"
|
||||
. " AND `year` = $YEAR;");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user