|
|
@ -39,7 +39,7 @@
|
|
|
|
@forked_shixun_map.each do |shixun_id, fork_from_id|
|
|
|
|
@forked_shixun_map.each do |shixun_id, fork_from_id|
|
|
|
|
next if fork_from_id != shixun.id
|
|
|
|
next if fork_from_id != shixun.id
|
|
|
|
|
|
|
|
|
|
|
|
score += 100 + 10 * @forked_shixun_map.fetch(shixun_id, 0) + 5 * @forked_myshixun_count_map.fetch(shixun_id, 0)
|
|
|
|
score += 100 + 10 * @forked_map.fetch(shixun_id, 0) + 5 * @forked_myshixun_count_map.fetch(shixun_id, 0)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
total_shixun_score += score
|
|
|
|
total_shixun_score += score
|
|
|
@ -98,7 +98,7 @@
|
|
|
|
total_members_count += course.members_count.to_i
|
|
|
|
total_members_count += course.members_count.to_i
|
|
|
|
total_shixun_homework_count += course['shixun_homework_count'].to_i
|
|
|
|
total_shixun_homework_count += course['shixun_homework_count'].to_i
|
|
|
|
|
|
|
|
|
|
|
|
score = 500 + 5 * @forked_map.fetch(course.id, 0) * @course_myshixun_map.fetch(course.id, 0)
|
|
|
|
score = 500 + 5 * @course_shixun_count_map.fetch(course.id, 0) * @course_myshixun_map.fetch(course.id, 0)
|
|
|
|
total_course_score += score
|
|
|
|
total_course_score += score
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|