From 604e5cb3f5242b6f91a450e560581ff754112d96 Mon Sep 17 00:00:00 2001 From: Jennifer Vendetti Date: Wed, 17 Apr 2024 15:22:51 -0700 Subject: [PATCH] Fix NameError: undefined subject --- lib/ontologies_linked_data/utils/notifications.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ontologies_linked_data/utils/notifications.rb b/lib/ontologies_linked_data/utils/notifications.rb index 706a4140..fecca046 100644 --- a/lib/ontologies_linked_data/utils/notifications.rb +++ b/lib/ontologies_linked_data/utils/notifications.rb @@ -105,8 +105,10 @@ def self.reset_password(user, token) end def self.obofoundry_sync(missing_onts, obsolete_onts) - body = '' ui_name = LinkedData.settings.ui_name + subject = "[#{ui_name}] OBO Foundry synchronization report" + body = '' + if missing_onts.size > 0 body << "The following OBO Library ontologies are missing from #{ui_name}:

" missing_onts.each do |ont|