This commit is contained in:
sw 2014-06-19 20:15:15 +08:00
parent 09eae9e253
commit 989407dad2
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ module CoursesHelper
return format("%.2f",teacher_stars == nil ? 0 : teacher_stars.stars) return format("%.2f",teacher_stars == nil ? 0 : teacher_stars.stars)
end end
#获取指定作业的得分
def project_score project def project_score project
issue_count = project.issues.count issue_count = project.issues.count
issue_journal_count = project.issue_changes.count issue_journal_count = project.issue_changes.count