课程学习学员处理日志
This commit is contained in:
parent
e1171a96c4
commit
e85a2346f4
|
@ -58,9 +58,9 @@ namespace :import_educoder_cource_repo do
|
|||
data = data.where("name like '%#{ENV['name']}%'")
|
||||
end
|
||||
puts data.to_sql
|
||||
data.each do |row|
|
||||
data.each_with_index do |row, index|
|
||||
begin
|
||||
puts row.id
|
||||
puts index
|
||||
user = User.find_by(phone: row.myshixun_user_phone) || User.find_by(mail: row.myshixun_user_mail)
|
||||
next if user.blank?
|
||||
root_repo = Repository.find_by(mirror_url: row.git_url)
|
||||
|
|
Loading…
Reference in New Issue