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 = attrib.participant
participant_info = {'lastname': participant.user.last_name, participant_info = {'lastname': participant.user.last_name,
'name': participant.user.get_full_name, 'name': participant.user.get_full_name,
'username':participant.user.username, 'username': participant.user.username,
'email':participant.user.email, 'email': participant.user.email,
'given':int(attrib.given), 'given': int(attrib.given),
'paid':participant.paid, 'paid': participant.paid,
'nb_places':1} 'nb_places': 1}
if participant.id in participants: if participant.id in participants:
participants[participant.id]['nb_places'] += 1 participants[participant.id]['nb_places'] += 1
participants[participant.id]['given'] += attrib.given participants[participant.id]['given'] += attrib.given