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 81a0acad Allow for multiple n/a entries
81a0acad is described below

commit 81a0acad3c40a27604d3b7a9adea9bbc9b3e6313
Author: Sebb <[email protected]>
AuthorDate: Fri Mar 7 17:08:59 2025 +0000

    Allow for multiple n/a entries
---
 www/members/check_invitations.cgi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/members/check_invitations.cgi 
b/www/members/check_invitations.cgi
index 835b64d5..11f542e9 100755
--- a/www/members/check_invitations.cgi
+++ b/www/members/check_invitations.cgi
@@ -31,8 +31,10 @@ def setup_data
   notinvited = {}
   notapplied = []
   fields = %i(invite apply mail karma id name)
+  nanum = 0
   ASF::MeetingUtil.parse_memapp(memappfile).filter_map do |a|
     entry = fields.zip(a).to_h
+    entry[:id] = "n/a_#{nanum+=1}" if entry[:id] == 'n/a' # Allow for n/a 
entries
     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?

Reply via email to