updateModule is a function for updating examinee objects after completing a module. updateModule assigns an module object from the supplied list to match the grade and the phase the examinee is in.

updateModule(examinee_object, module_list)

Arguments

examinee_object

an examinee object.

module_list

a module list from loadModules.

Value

an examinee object with its current_module slot updated.