From 89080430b65f5935d533237936715e2e6cd27e9f Mon Sep 17 00:00:00 2001
From: LpCote <louis-philippe.cote@polymt.ca>
Date: Mon, 11 Nov 2024 07:42:06 -0500
Subject: [PATCH] =?UTF-8?q?fix:=20tentatives=20max=20c=C3=B4t=C3=A9=20clie?=
 =?UTF-8?q?nt=20bloquait=20pas=20la=20soumission=20du=20d=C3=A9fi?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 CTFd/themes/core-beta/templates/challenge.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CTFd/themes/core-beta/templates/challenge.html b/CTFd/themes/core-beta/templates/challenge.html
index c60c9210..a1750ddc 100644
--- a/CTFd/themes/core-beta/templates/challenge.html
+++ b/CTFd/themes/core-beta/templates/challenge.html
@@ -240,13 +240,13 @@
               <div class="row text-center">
                 <div class="col-12">
                   <p>
-                    {{ attempts }}/{{ max_attempts }} tentatives{{ max_attempts|pluralize }}
+                    {{ attempts }}/{{ max_attempts }} tentative{{ max_attempts|pluralize }}
                   </p>
                 </div>
               </div>
             {% endif %}
             
-            {% if (not solved_by_me and attempts == 0) or challenge.type == "manualRecursive" or ((max_attempts == 0 or max_attempts > attempts) and challenge.type == "standard" and not solved_by_me) %}
+            {% if (not solved_by_me and attempts == 0) or ((max_attempts == 0 or max_attempts > attempts) and challenge.type == "manualRecursive") or ((max_attempts == 0 or max_attempts > attempts) and challenge.type == "standard" and not solved_by_me) %}
               <div class="row submit-row">
                 <div class="col-12 col-sm-8 w-100">
                   {% block input %}
-- 
GitLab