Browse Source

课程学习学员处理日志

pull/330/head
xxq250 3 years ago
parent
commit
e85a2346f4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/tasks/import_educoder_cource_repo.rake

+ 2
- 2
lib/tasks/import_educoder_cource_repo.rake View File

@@ -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…
Cancel
Save