bug fix in seat arrangement
fixed all students being allocated the same exam hall
This commit is contained in:
parent
1756cc97f5
commit
80959a8312
|
@ -158,7 +158,7 @@ class ExamGroup(Document):
|
|||
students = self.randomize_students_by_exam()
|
||||
for exam_hall in self.allocated_rooms:
|
||||
print("exam hall", exam_hall.id)
|
||||
for i in range(self.number_of_students):
|
||||
for i in range(exam_hall.number_of_students):
|
||||
if not students:
|
||||
print("no more students")
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue