Skip to content

Commit

Permalink
Merge pull request #17 from GeotrekCE/fix-résa-animation-sans-capacité
Browse files Browse the repository at this point in the history
[backend] Fix confirmation réservation sur animation sans nombre de p…
  • Loading branch information
amandine-sahl committed Jun 29, 2023
2 parents 8ec1c56 + adabbb9 commit f7d3e84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/core/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f7d3e84

Please sign in to comment.