Correction de bug
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent b55758a99c
commit dba3fc71aa

@ -17,6 +17,7 @@ class AdminModel
public function addNewEnigmeSolo(string $nom,string $enonce,string $aide,string $rappel,string $exemple,string $test,string $solution, string $prompt) : Enigme
{
$last = $this->enigme_gateway->findLastEnigma();
var_dump($last);
if ($last !== null){
$ordre = $last[0]->getOrdre() + 1;
} else {

@ -71,7 +71,6 @@ class VisitorModel
throw new Exception("Mot de passe invalide");
}
$estAdmin = $this->utilisateur_gateway->getEstAdminByEmail($email);
var_dump($estAdmin);
if ($estAdmin == true) {
$_SESSION['role'] = "admin";
} else {

@ -7,7 +7,6 @@ def estPalindromeVerif(var):
return True
else:
return False
import random as r
def testPalindrome(x):
l=[1,2,3,2,1]
@ -26,11 +25,10 @@ def testPalindrome(x):
return True
print(testPalindrome(5))
`;
`;
exec("print ('True')", "code");
exec(test, "solution");
result.innerHTML = "Test en cours...";
await new Promise(r => setTimeout(r, 1500));
check();
}

Loading…
Cancel
Save