From 825269067c670dc51c87ef149f946f275821d119 Mon Sep 17 00:00:00 2001 From: ludo Date: Sun, 12 Jun 2016 19:29:50 +0200 Subject: [PATCH] minor syntax changes --- bda/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bda/views.py b/bda/views.py index bdc74322..1e5a1622 100644 --- a/bda/views.py +++ b/bda/views.py @@ -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()})