minor syntax changes

This commit is contained in:
ludo 2016-06-12 19:29:50 +02:00
parent f4fe231d4b
commit 825269067c

View file

@ -297,11 +297,11 @@ def spectacle(request, tirage_id, spectacle_id):
for attrib in attributions:
participant = attrib.participant
participant.given = attrib.given
if (participant.id in participants):
if participant.id in participants:
participants[participant.id].nb_places = 2
else:
participant.nb_places = 1
participants[participant.id]=participant
participants[participant.id] = participant
return render(request, "bda-participants.html", {"spectacle": spectacle, "participants": participants.values()})