This commit is contained in:
BoHung Chiu 2022-01-11 08:55:44 +08:00
parent fc3832da35
commit 8ac2054a00
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ module AsiaSyncPlugin
hn = Honor.new if hn.nil?
hn.rss2_id = honor["ukey"]
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.member_profile_id = user.member_profile_id
puts "Honor(Award) #{hn.id} saved" if hn.save