Changeset fb5d03a in flexograder


Ignore:
Timestamp:
11/10/25 11:51:57 (2 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
master
Children:
bc820cf
Parents:
bb42e13
Message:

add KID test - restrict shuffle answers to ChoiceQuestions

Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • builder/exam.py

    rbb42e13 rfb5d03a  
    77
    88from flexoentity import FlexoEntity, EntityType, EntityState
    9 from .exam_elements import ExamElement
     9from .exam_elements import ExamElement, ChoiceQuestion
    1010from .question_factory import question_factory
    1111
     
    213213    def shuffle_options(self):
    214214        for each_question in self.questions:
    215             each_question.shuffle_answers()
     215            if isinstance(each_question, ChoiceQuestion):
     216                each_question.shuffle_answers()
    216217
    217218    @property
Note: See TracChangeset for help on using the changeset viewer.