fix a little question ordering bug

This commit is contained in:
Ross
2024-08-12 09:11:27 +01:00
parent b73b43d155
commit bd1bb54f9f
4 changed files with 22 additions and 9 deletions
+5 -1
View File
@@ -835,6 +835,10 @@ class ExamBase(ExamOrCollectionGenericBase):
default=False,
)
#randomise_question_order = models.BooleanField(
# help_text="If an exam should randomise the order of questions in RTS.",
#)
include_history = models.BooleanField(
help_text="If an exam should include history when taking",
default=False,
@@ -960,7 +964,7 @@ class ExamBase(ExamOrCollectionGenericBase):
def get_question_by_index(self, index: int):
# There must be a better way to do this
return list(self.get_questions)[index]
return list(self.get_questions())[index]
def get_cid_user_score(self, cid_user):
c = "c/" + str(cid_user)