Browse Source

change find by name to find by identifier

pull/326/head
zhangxunhui 3 years ago
parent
commit
7aca2e487e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/models/concerns/watchable.rb

+ 2
- 2
app/models/concerns/watchable.rb View File

@@ -32,9 +32,9 @@ module Watchable
end

def contribution_perc
project_name = params[:project_name]
project_identifier = params[:project_identifier]
user_login = params[:id]
@project = Project.find_by_name(project_name)
@project = Project.find_by_identifier(project_identifier)
@user = User.find_by_login(user_login)

def cal_perc(count_user, count_all)


Loading…
Cancel
Save