Updated.
This commit is contained in:
parent
7f3bbe7948
commit
47eafeef14
|
@ -306,10 +306,11 @@ module FguSyncPlugin
|
|||
period_start_date = self.parse_date(dt["period_start_date"])
|
||||
period_end_date = self.parse_date(dt["period_end_date"])
|
||||
unit = self.localize_data(dt["unit"])
|
||||
jobs = self.localize_data(dt["jobs"])
|
||||
participants = self.localize_data(dt["participants"])
|
||||
year = (period_start_date ? period_start_date.strftime("%Y") : "")
|
||||
prj = Project.where(:rss2_id => rss2_id).first
|
||||
prj_data = {:rss2_id => rss2_id,:project_title_translations => project_title, :project_number=> project_number, :period_start_date => period_start_date, :period_end_date => period_end_date, :unit_translations => unit, :participants_translations => participants, :year => year, :member_profile => mp}
|
||||
prj_data = {:rss2_id => rss2_id,:project_title_translations => project_title, :project_number=> project_number, :period_start_date => period_start_date, :period_end_date => period_end_date, :unit_translations => unit, :jobs_translations => jobs, :participants_translations => participants, :year => year, :member_profile => mp}
|
||||
if prj.nil?
|
||||
prj = Project.create(prj_data)
|
||||
puts "Saving new Project."
|
||||
|
@ -698,6 +699,7 @@ module FguSyncPlugin
|
|||
"計畫起日期" => "period_start_date",
|
||||
"計畫迄日期" => "period_end_date",
|
||||
"經費補助單位(補助單位)" => "unit",
|
||||
"填報者類型(職稱/擔任之工作)" => "jobs",
|
||||
"所有參與者" => "participants"
|
||||
},
|
||||
'vrul_base' => {
|
||||
|
|
Loading…
Reference in New Issue