修复git说明页面导航丢失问题

修改个人得分
This commit is contained in:
z9hang 2014-08-07 11:28:58 +08:00
parent eacc0fdf53
commit 56a06c4a04
2 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#added by baiyu
class GitUsageController < ApplicationController
layout "project_base"
def ch_usage
end

View File

@ -385,6 +385,7 @@ module UserScoreHelper
def update_score(option_number)
option_number.total_score = collaboration(option_number) + influence(option_number) + skill(option_number) + active(option_number)
option_number.save
option_number.total_score
end
#协同得分
@ -704,6 +705,19 @@ module UserScoreHelper
def user_scores(user,type,project=nil)
ooption_num = get_option_number(user,type,project)
update_memo_number(user,type,project)
update_messges_for_issue(user,type,project)
update_issues_status(user,type,project)
update_replay_for_message(user,type,project)
update_replay_for_memo(user,type,project)
update_tread(user,type,project)
update_praise(user,type,project)
update_changeset(user,type,project)
update_document(user,type,project)
update_attachment(user,type,project)
update_issue_done_ratio(user,type,project)
update_post_issue(user,type,project)
update_score(ooption_num)
ooption_num
end
end