From a8d3e80122f4eeed0fd4ce3099702452ea220f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 11 Jan 2023 15:13:35 +0100 Subject: [PATCH] Gestion de l'etat partie fini --- WEB/Controller/PartieGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Controller/PartieGateway.php b/WEB/Controller/PartieGateway.php index d3f10fd1..a2104c37 100644 --- a/WEB/Controller/PartieGateway.php +++ b/WEB/Controller/PartieGateway.php @@ -336,7 +336,7 @@ class PartieGateway return $date; } public function endGame(int $idPartie){ - $query = "UPDATE Participer SET etat = 1 WHERE partie = :idPartie"; + $query = "UPDATE Participer SET etat = 2 WHERE partie = :idPartie"; $this->con->executeQuery($query, array( "idPartie" => array($idPartie, SQLITE3_INTEGER) )