This commit is contained in:
Martin Pépin 2016-06-27 18:47:31 +02:00
parent 4596d588e9
commit d4040670f5

View file

@ -300,11 +300,11 @@ def spectacle(request, tirage_id, spectacle_id):
participant = attrib.participant
participant_info = {'lastname': participant.user.last_name,
'name': participant.user.get_full_name,
'username':participant.user.username,
'email':participant.user.email,
'given':int(attrib.given),
'paid':participant.paid,
'nb_places':1}
'username': participant.user.username,
'email': participant.user.email,
'given': int(attrib.given),
'paid': participant.paid,
'nb_places': 1}
if participant.id in participants:
participants[participant.id]['nb_places'] += 1
participants[participant.id]['given'] += attrib.given