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 68d4cce  get non-participants.cgi working again
68d4cce is described below

commit 68d4cce59b19dd29686dc570fda431c902febf2e
Author: Sam Ruby <[email protected]>
AuthorDate: Tue Mar 8 03:50:55 2022 -0500

    get non-participants.cgi working again
---
 www/members/non-participants.cgi | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/members/non-participants.cgi b/www/members/non-participants.cgi
index 63c3b85..de0e1a6 100755
--- a/www/members/non-participants.cgi
+++ b/www/members/non-participants.cgi
@@ -32,7 +32,11 @@ def get_attend_matrices(dir)
   matrix = attendance['matrix'].map do |name, meetings|
     id = idMap[name]
     next unless id and active[id]
-    data = meetings.sort.reverse.map(&:last)
+
+    # exclude 'active entry'
+    data = meetings.select {|key, value| key.start_with? '20'}.
+      sort.reverse.map(&:last)
+
     first = data.length
     missed = (data.index {|datum| datum != '-'} || data.length)
 

Reply via email to