parent
eacc0fdf53
commit
56a06c4a04
|
@ -1,5 +1,6 @@
|
|||
#added by baiyu
|
||||
class GitUsageController < ApplicationController
|
||||
layout "project_base"
|
||||
def ch_usage
|
||||
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue