From adabbb9faa3580cddf94d6d683e4f22ea2ee3a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Antoine=20Dupr=C3=A9?= Date: Thu, 29 Jun 2023 12:00:02 +0200 Subject: [PATCH] =?UTF-8?q?[backend]=20Fix=20confirmation=20r=C3=A9servati?= =?UTF-8?q?on=20sur=20animation=20sans=20nombre=20de=20places?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/core/routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/core/routes.py b/backend/core/routes.py index 60a943b9..8ec7cd34 100644 --- a/backend/core/routes.py +++ b/backend/core/routes.py @@ -372,6 +372,8 @@ def confirm_reservation(): event = resa.event if not event.is_reservation_possible_for(resa.nb_participants): raise EventIsFull + elif not event.capacity: + resa.liste_attente = False elif event.sum_participants + resa.nb_participants <= event.capacity: resa.liste_attente = False else: