From 74a462b195e8548e9fb92130bbf338fc699c1786 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Fri, 2 Aug 2019 17:30:09 +0800 Subject: [PATCH] fix --- app/views/competition_teams/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/competition_teams/show.html.erb b/app/views/competition_teams/show.html.erb index caef09a5..66fe48d7 100644 --- a/app/views/competition_teams/show.html.erb +++ b/app/views/competition_teams/show.html.erb @@ -39,7 +39,7 @@ @forked_shixun_map.each do |shixun_id, fork_from_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 total_shixun_score += score @@ -98,7 +98,7 @@ total_members_count += course.members_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 %>