From 2649add76a08cc3eb004606c9800c5bcb432c7c5 Mon Sep 17 00:00:00 2001 From: IJ Kim Date: Mon, 28 Sep 2015 14:34:12 -0400 Subject: [PATCH] excluding Do_Not_Publsih__c --- lib/sf/account.rb | 3 ++- lib/sf/version.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/sf/account.rb b/lib/sf/account.rb index edc8219..4c94abb 100644 --- a/lib/sf/account.rb +++ b/lib/sf/account.rb @@ -114,7 +114,8 @@ def self.active_inc_parts(service_name) Supporting_Institution__r.InCommon_Weblink__c from Service_Institution__c where Service__r.Name = \'#{service_name}\' 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_Start_Date__c = null or Service_Start_Date__c < today) + and Do_Not_Publish__c <> true") build_collection sobjects.map(&:Supporting_Institution__r) unless sobjects.blank? end end diff --git a/lib/sf/version.rb b/lib/sf/version.rb index aeff44d..bd06f4b 100644 --- a/lib/sf/version.rb +++ b/lib/sf/version.rb @@ -1,3 +1,3 @@ module Sf - VERSION = "0.1.31" + VERSION = "0.1.32" end