fix a little question ordering bug
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user