Merge branch 'Kerl/fix_tirage' into 'master'

Répare les tirages du BdA

La liste des spectacles était passées à l'algo de tirage au lieu des
participants

See merge request !21
This commit is contained in:
Basile Clement 2016-06-08 13:53:31 +02:00
commit 9ff09d5363

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)