Hide score button if exercise has no tests
We check for all teacher-defined assessments (linter and unit tests) to determine whether scoring should be possible
This commit is contained in:

committed by
Sebastian Serth

parent
ba5918b4ca
commit
e0c2c7b806
@ -205,6 +205,10 @@ class Exercise < ApplicationRecord
|
||||
"
|
||||
end
|
||||
|
||||
def teacher_defined_assessment?
|
||||
files.any?(&:teacher_defined_assessment?)
|
||||
end
|
||||
|
||||
def get_working_times_for_study_group(study_group_id, user = nil)
|
||||
user_progress = []
|
||||
additional_user_data = []
|
||||
|
Reference in New Issue
Block a user