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 9ed2e4b4 Use new method of parsing members.txt
9ed2e4b4 is described below
commit 9ed2e4b47031d774de30325e801ea7f56993710e
Author: Sebb <[email protected]>
AuthorDate: Wed Mar 8 11:48:02 2023 +0000
Use new method of parsing members.txt
This allows for missing availids
---
www/members/attendance-xcheck.cgi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/www/members/attendance-xcheck.cgi
b/www/members/attendance-xcheck.cgi
index 0bc7fabc..48dd5391 100755
--- a/www/members/attendance-xcheck.cgi
+++ b/www/members/attendance-xcheck.cgi
@@ -24,9 +24,9 @@ end
# cross check against members.txt
missing = []
-ASF::Member.list.each do |id, info|
- unless attend.delete(info[:name]) or info['status']
- missing << [info[:name], added[id]]
+ASF::Member.list_entries do |status, name, id, _entry|
+ unless attend.delete(name) or status != :current
+ missing << [name, added[id]]
end
end