This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new e7002de9 Fix logic
e7002de9 is described below

commit e7002de995599411ac62ae324b642fb49786ebe6
Author: Sebb <sebb...@users.noreply.github.com>
AuthorDate: Sat May 18 02:32:02 2024 +0100

    Fix logic
---
 tools/site-scan.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index b74f8878..271635fd 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -67,7 +67,7 @@ end
 # @return Hash of symbols: text|url found from a check made
 # @see SiteStandards for definitions of what we should scan for (in general)
 def parse(id, site, name, podling=false)
-  show_anyway = Time.now.gmtime.strftime("%H") == '00' # show suppressed 
errors once a day
+  show_anyway = Time.now.gmtime.strftime("%H") == '08' # show suppressed 
errors once a day
   data = {}
   # force https to avoid issue with cache (sites should use https anyway)
   site.sub!(%r{^http:},'https:')
@@ -170,7 +170,7 @@ def parse(id, site, name, podling=false)
           subpages[site2.to_s] = a
         end
       rescue StandardError => e
-        unless show_anyway or 
%w(a_href).include?('fineract.gateway.scarf.sh/{version}') # reported, but not 
yet fixed, so suppress noise
+        if show_anyway or 
!%w(a_href).include?('fineract.gateway.scarf.sh/{version}') # reported, but not 
yet fixed, so suppress noise
           $stderr.puts "#{id}: Bad a_href #{a_href} #{e}"
         end
       end
@@ -221,7 +221,7 @@ def parse(id, site, name, podling=false)
             nodisclaimer << subpage
           end
         else
-          unless show_anyway or %w(nlpcraft teaclave).include? id # reported, 
but not yet fixed, so suppress noise
+          if show_anyway or !%w(nlpcraft teaclave).include? id # reported, but 
not yet fixed, so suppress noise
             $stderr.puts "#{id} #{subpage} => #{uri} #{status} 
'#{anchor.text.strip}'"
           end
         end

Reply via email to