whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: cleanup json
Date Wed, 05 Apr 2017 12:35:50 GMT
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  b86b727   cleanup json
b86b727 is described below

commit b86b7276c4e1e581436f038f479ce7c66bb8fac4
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Apr 5 08:35:42 2017 -0400

    cleanup json
---
 www/members/non-participants.cgi | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/www/members/non-participants.cgi b/www/members/non-participants.cgi
index 64cbab4..b1507f1 100755
--- a/www/members/non-participants.cgi
+++ b/www/members/non-participants.cgi
@@ -109,9 +109,13 @@ _html do
 end
 
 _json do
-  meetingsMissed = (@meetingsMissed || 5).to_i
-  inactive = matrix.select {|id, name, missed| id and missed >= meetingsMissed}
-  Hash[inactive.map {|id, name, missed| 
+  meetingsMissed = (@meetingsMissed || 3).to_i
+
+  inactive = matrix.select do |id, name, first, missed|
+    id and missed >= meetingsMissed
+  end
+
+  Hash[inactive.map {|id, name, first, missed| 
     [id, {name: name, missed: missed, status: 'no response yet'}]
   }]
 end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message