Répare les tirages du BdA

La liste des spectacles était passées à l'algo de tirage au lieu des
participants
This commit is contained in:
Martin Pépin 2016-06-08 13:26:04 +02:00
parent 2b7f1c96d1
commit a0a4ff05d5

View file

@ -190,7 +190,7 @@ def do_tirage(request, tirage_id):
start = time.time()
data = {}
shows = tirage_elt.spectacle_set.select_related().all()
members = tirage_elt.spectacle_set.all()
members = tirage_elt.participant_set.all()
choices = ChoixSpectacle.objects.filter(spectacle__tirage=tirage_elt).order_by(
'participant', 'priority').select_related().all()
algo = Algorithm(shows, members, choices)