|
|
|
@ -126,7 +126,7 @@ class Member < ActiveRecord::Base
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def student_work_score
|
|
|
|
|
StudentWork.joins(:homework_common).where("student_works.user_id = #{self.user_id} and homework_commons.course_id = #{self.course_id}")
|
|
|
|
|
StudentWork.select("homework_commons.name, student_works.final_score").joins(:homework_common).where("student_works.user_id = #{self.user_id} and homework_commons.course_id = #{self.course_id}")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def student_work_score_avg
|
|
|
|
|