|
|
@ -60,7 +60,12 @@ class EcCourseSupportsController < ApplicationController
|
|
|
|
course_data << { name: name, top_relation: cs.top_relation, weigths: cs.weigths}
|
|
|
|
course_data << { name: name, top_relation: cs.top_relation, weigths: cs.weigths}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
gs.ec_course_supports.count > max_support_count && max_support_count = gs.ec_course_supports.count
|
|
|
|
gs.ec_course_supports.count > max_support_count && max_support_count = gs.ec_course_supports.count
|
|
|
|
course_support_data << {sequence_num: sequence_num, ec_graduation_subitem_id: gs.id, course_data: course_data, num_total: gs.ec_course_supports.count, weights_total: weigths_sum}
|
|
|
|
course_support_data << {sequence_num: sequence_num,
|
|
|
|
|
|
|
|
sequence_title: gs.content,
|
|
|
|
|
|
|
|
ec_graduation_subitem_id: gs.id,
|
|
|
|
|
|
|
|
course_data: course_data,
|
|
|
|
|
|
|
|
num_total: gs.ec_course_supports.count,
|
|
|
|
|
|
|
|
weights_total: weigths_sum}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
render :json => {ec_year_id: @year.id,
|
|
|
|
render :json => {ec_year_id: @year.id,
|
|
|
|