diff --git a/lib/tasks/sync_ntnu_personal_data_tasks.rake b/lib/tasks/sync_ntnu_personal_data_tasks.rake index 120a983..ded40dd 100644 --- a/lib/tasks/sync_ntnu_personal_data_tasks.rake +++ b/lib/tasks/sync_ntnu_personal_data_tasks.rake @@ -32,7 +32,7 @@ module NtnuSyncPlugin end end - if !invalid_apa_title.include? apa_title + if invalid_apa_title.include? apa_title jp.delete jp = JournalPaper.new jp.paper_title_translations = { 'zh_tw' => apa_title, 'en' => apa_title } @@ -95,7 +95,7 @@ module NtnuSyncPlugin end end - if !invalid_apa_title.include? apa_title + if invalid_apa_title.include? apa_title wc.delete wc = WritingConference.new wc.paper_title_translations = { 'zh_tw' => apa_title, 'en' => apa_title }