|
|
|
@ -65,10 +65,10 @@ class Ecs::QueryCourseEvaluationService < ApplicationService
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def score_levels_map
|
|
|
|
|
@_score_levels_map ||= begin
|
|
|
|
|
def score_levels
|
|
|
|
|
@_score_levels ||= begin
|
|
|
|
|
index = 0
|
|
|
|
|
ec_course.ec_score_levels.each_with_object({}) do |level, obj|
|
|
|
|
|
ec_course.ec_score_levels.map do |level|
|
|
|
|
|
hash = level.as_json(only: %i[id position score level])
|
|
|
|
|
|
|
|
|
|
hash[:description] =
|
|
|
|
@ -79,7 +79,7 @@ class Ecs::QueryCourseEvaluationService < ApplicationService
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
index += 1
|
|
|
|
|
obj[level.id.to_s] = hash
|
|
|
|
|
hash
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|