Fix bug.
This commit is contained in:
parent
fc3832da35
commit
8ac2054a00
|
@ -202,7 +202,7 @@ module AsiaSyncPlugin
|
||||||
hn = Honor.new if hn.nil?
|
hn = Honor.new if hn.nil?
|
||||||
hn.rss2_id = honor["ukey"]
|
hn.rss2_id = honor["ukey"]
|
||||||
hn.award_name_translations = localize_data(honor["Award_name"]) #獎項名稱
|
hn.award_name_translations = localize_data(honor["Award_name"]) #獎項名稱
|
||||||
hn.awarding_unit_translations = localize_data(honor["Award_unit"][0].to_s.gsub("授獎單位:","").strip) #頒獎單位
|
hn.awarding_unit_translations = localize_data(honor["Award_unit"].to_s.gsub("授獎單位:","").strip) #頒獎單位
|
||||||
hn.award_date = DateTime.parse(honor["Award_Date"].gsub('.','/')) rescue nil #獲獎日期
|
hn.award_date = DateTime.parse(honor["Award_Date"].gsub('.','/')) rescue nil #獲獎日期
|
||||||
hn.member_profile_id = user.member_profile_id
|
hn.member_profile_id = user.member_profile_id
|
||||||
puts "Honor(Award) #{hn.id} saved" if hn.save
|
puts "Honor(Award) #{hn.id} saved" if hn.save
|
||||||
|
|
Loading…
Reference in New Issue