This is an automated email from the ASF dual-hosted git repository.
sebb 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 b53cb523 Use entry names rather than numbers
b53cb523 is described below
commit b53cb5236c114b56cb12246ecaedb668e9a9f822
Author: Sebb <[email protected]>
AuthorDate: Mon Mar 11 15:33:28 2024 +0000
Use entry names rather than numbers
---
www/members/invitations.cgi | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/www/members/invitations.cgi b/www/members/invitations.cgi
index d3f10b47..6459cd24 100755
--- a/www/members/invitations.cgi
+++ b/www/members/invitations.cgi
@@ -32,10 +32,11 @@ def setup_data
notapplied = []
fields = %i(invite apply mail karma id name)
ASF::MeetingUtil.parse_memapp(memappfile).filter_map do |a|
- if a.first == 'no'
- notinvited[a[-2]] = {name: a[-1]}
- elsif a[1..-3].any? {|e| e == 'no'} # any no after first?
- notapplied << fields.zip(a).to_h
+ entry = fields.zip(a).to_h
+ if entry[:invite] == 'no'
+ notinvited[entry[:id]] = {name: entry[:name]}
+ elsif %i(apply mail karma).any? {|e| entry[e] == 'no'} # any no apart from
invite?
+ notapplied << entry
end
end