whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch master updated: Ensure it's not used for evil
Date Mon, 17 Feb 2020 02:55:10 GMT
This is an automated email from the ASF dual-hosted git repository.

curcuru 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 6d4c854  Ensure it's not used for evil
6d4c854 is described below

commit 6d4c854fbc7ecaf74e5644b0dd1264133ab0d8b0
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Sun Feb 16 21:54:57 2020 -0500

    Ensure it's not used for evil
---
 www/members/list-traffic.cgi | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/www/members/list-traffic.cgi b/www/members/list-traffic.cgi
index 46d2c72..f3b7a7f 100755
--- a/www/members/list-traffic.cgi
+++ b/www/members/list-traffic.cgi
@@ -181,18 +181,18 @@ _html do
       months = Dir["#{SRV_MAIL}/*"].map {|path| File.basename(path).untaint}.grep(/^\d+$/)
       attendance = MeetingUtil.get_attendance(ASF::SVN['Meetings'])
       style_cohorts(attendance)
-      if ENV['QUERY_STRING'].include? 'Clear-Cache-No-Really'
-        _p do # Danger, Will Robinson!
-          _ 'Note: deleting cached .json files: '
-          cache = Dir["#{SRV_MAIL}/??????.json"]
-          ctr = 0
-          cache.each do |f|
-            File.delete(f.untaint)
-            ctr += 1
-          end
-          _ "Successfully deleted #{ctr} files (will be rebuilt now)."
-        end
-      end
+      # if ENV['QUERY_STRING'].include? 'Clear-Cache-No-Really'
+      #   _p do # Danger, Will Robinson!
+      #     _ 'Note: deleting cached .json files: '
+      #     cache = Dir["#{SRV_MAIL}/??????.json"]
+      #     ctr = 0
+      #     cache.each do |f|
+      #       File.delete(f.untaint)
+      #       ctr += 1
+      #     end
+      #     _ "Successfully deleted #{ctr} files (will be rebuilt now)."
+      #   end
+      # end
       if ENV['QUERY_STRING'].include? 'week'
         display_weekly(months: months, nondiscuss: MailUtils::NONDISCUSSION_SUBJECTS["<#{LIST_ROOT}.apache.org>"])
       else


Mime
View raw message