You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2020/01/31 21:22:49 UTC

[whimsy] branch master updated: Fix name bug

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 73ae463  Fix name bug
73ae463 is described below

commit 73ae46335bc4e05c580721f1a9ac81da9016ad00
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Fri Jan 31 16:22:40 2020 -0500

    Fix name bug
---
 www/officers/list-traffic.cgi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/officers/list-traffic.cgi b/www/officers/list-traffic.cgi
index 98bd15a..ca08d5f 100755
--- a/www/officers/list-traffic.cgi
+++ b/www/officers/list-traffic.cgi
@@ -30,7 +30,7 @@ WEEK_START = '@@start'
 # Display monthly statistics for all available data
 def display_monthly(months:, nondiscuss:)
   months.sort.reverse.each do |month|
-    data = get_mails_month(mailroot: SRV_MAIL, yearmonth: month, nondiscuss: nondiscuss)
+    data = MailUtils.get_mails_month(mailroot: SRV_MAIL, yearmonth: month, nondiscuss: nondiscuss)
     next if data.empty?
     _h1 "#{LIST_ROOT}@ statistics for #{month} (total mails: #{data[MailUtils::MAILS].length + data[MailUtils::TOOLS].length})", id: "#{month}"
     _div.row do
@@ -65,7 +65,7 @@ end
 def display_weekly(months:, nondiscuss:)
   weeks = Hash.new {|h, k| h[k] = {}}
   months.sort.each do |month|
-    data = get_mails_month(mailroot: SRV_MAIL, yearmonth: month, nondiscuss: nondiscuss)
+    data = MailUtils.get_mails_month(mailroot: SRV_MAIL, yearmonth: month, nondiscuss: nondiscuss)
     next if data.empty?
     # accumulate all mails in order for weeks, through all months
     data[MailUtils::MAILS].each do |m|
@@ -155,7 +155,7 @@ _json do
   months = Dir["#{SRV_MAIL}/*"].map {|path| File.basename(path).untaint}.grep(/^\d+$/)
   data = Hash.new {|h, k| h[k] = {} }
   months.sort.reverse.each do |month|
-    tmp = get_mails_month(yearmonth: month, nondiscuss: MailUtils::NONDISCUSSION_SUBJECTS["<#{LIST_ROOT}.apache.org>"])
+    tmp = MailUtils.get_mails_month(yearmonth: month, nondiscuss: MailUtils::NONDISCUSSION_SUBJECTS["<#{LIST_ROOT}.apache.org>"])
     next if tmp.empty?
     data[month][MailUtils::TOOLCOUNT] = tmp[MailUtils::TOOLCOUNT]
     data[month][MailUtils::MAILCOUNT] = tmp[MailUtils::MAILCOUNT]