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 2017/04/05 12:35:50 UTC
[whimsy] branch master updated: cleanup json
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 <ru...@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" <co...@whimsical.apache.org>'].