bug fix in seat arrangement

fixed all students being allocated the same exam hall
This commit is contained in:
Pranav Jerry 2023-05-22 19:01:37 +05:30
parent 1756cc97f5
commit 80959a8312
Signed by: pranav
GPG Key ID: F1DCDC4FED0A0C5B
1 changed files with 1 additions and 1 deletions

View File

@ -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