From 739d9130617b1c31e9b6875b0d27d6c97d39162f Mon Sep 17 00:00:00 2001 From: IJ Kim <ij@internet2.edu> Date: Thu, 20 Aug 2020 12:59:30 -0400 Subject: [PATCH] removed the start_date restriction for the cert_subscribers list --- lib/sf/account.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/sf/account.rb b/lib/sf/account.rb index 21b2339..113d5c7 100644 --- a/lib/sf/account.rb +++ b/lib/sf/account.rb @@ -131,7 +131,6 @@ def self.active_inc_parts(service_name) end def self.cert_service_subscribers - today = Date.today.strftime('%Y-%m-%d') sobjects = Sf.client.query("select Supporting_Institution__r.Id, Supporting_Institution__r.Name, @@ -139,8 +138,7 @@ def self.cert_service_subscribers Supporting_Institution__r.InCommon_Participant_Type__c, Supporting_Institution__r.InCommon_Weblink__c from Service_Institution__c where Service__r.Name = \'InCommon Certificate Service\' - and (Service_End_Date__c = null or Service_End_Date__c > #{today}) - and (Service_Start_Date__c = null or Service_Start_Date__c < #{today}) + and (Service_End_Date__c = null or Service_End_Date__c ='') and (Type_of_Support__c = 'Subscriber' or Type_of_Support__c = 'Subscriber Parent') and Do_Not_Publish__c <> true") build_collection sobjects.map(&:Supporting_Institution__r) unless sobjects.blank?