课程学习学员处理日志

This commit is contained in:
xxq250 2023-03-09 09:33:55 +08:00
parent e1171a96c4
commit e85a2346f4
1 changed files with 2 additions and 2 deletions

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)