You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/03/10 20:01:45 UTC

[whimsy] branch master updated: exclude footer

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

rubys 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 520a93b  exclude footer
520a93b is described below

commit 520a93b617085ff6d94c57c97722a49d57231186
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Mar 10 16:01:32 2019 -0400

    exclude footer
---
 www/incubator/graduated.cgi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/www/incubator/graduated.cgi b/www/incubator/graduated.cgi
index 5abc837..6dfde4c 100755
--- a/www/incubator/graduated.cgi
+++ b/www/incubator/graduated.cgi
@@ -63,7 +63,8 @@ _html do
             creports.map do |committee|
               name = committee[/>(.*?)</, 1]
               href = committee[/href="(.*?)"/, 1].untaint
-              page = File.read("#{source}/#{href}")
+              page = File.read("#{source}/#{href}").
+                sub(/<footer.*<\/footer>/m, '')
 
               active = unreported.delete(name.downcase)
 
@@ -72,7 +73,7 @@ _html do
               establish = page.split('<h2').map { |report|
                 title = report[/<h3.*?<\/h3>/]
                 next unless title and title.downcase.include? 'establish'
-                graduated ||= report.downcase.include?('incubator')
+                graduated ||= report.downcase.include? 'incubator'
                 report[/id="(.*?)"/, 1]
               }.compact.first