From 7880ec177939195474bec771c98df63654d6e85f Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 28 Mar 2024 09:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=A6=85=E9=81=93=E6=95=B0=E6=8D=AE=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/import_issues_from_chandao.rake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tasks/import_issues_from_chandao.rake b/lib/tasks/import_issues_from_chandao.rake index 472013bda..41bbc3356 100644 --- a/lib/tasks/import_issues_from_chandao.rake +++ b/lib/tasks/import_issues_from_chandao.rake @@ -8,7 +8,7 @@ namespace :import_from_chandao do name = args.name CSV.foreach("#{Rails.root}/#{args.name}", headers: true) do | row | randd_field_hash = row.to_hash - issue = Issue.new + issue = Issue.new(issue_classify: "issue") author = User.like(randd_field_hash['由谁创建']).take issue.author_id = author&.id assigner = randd_field_hash['指派给'].present? ? User.like(randd_field_hash['指派给']).take : nil @@ -46,7 +46,7 @@ namespace :import_from_chandao do pm_project_id = args.pm_project_id CSV.foreach("#{Rails.root}/#{name}", headers: true) do | row | randd_field_hash = row.to_hash - issue = Issue.new + issue = Issue.new(issue_classify: "issue") author = User.like(randd_field_hash['由谁创建']).take issue.author_id = author&.id assigner = randd_field_hash['指派给'].present? ? User.like(randd_field_hash['指派给']).take : nil @@ -81,7 +81,7 @@ namespace :import_from_chandao do pm_project_id = args.pm_project_id CSV.foreach("#{Rails.root}/#{name}", headers: true) do | row | randd_field_hash = row.to_hash - issue = Issue.new + issue = Issue.new(issue_classify: "issue") author = User.like(randd_field_hash['由谁创建']).take issue.author_id = author&.id assigner = randd_field_hash['指派给'].present? ? User.like(randd_field_hash['指派给']).take : nil