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 4ad84519 Look for statements by seconds 4ad84519 is described below commit 4ad845192478ac091dcf521e1383d9f104c80eaa Author: Sebb <s...@apache.org> AuthorDate: Wed Feb 19 23:37:25 2025 +0000 Look for statements by seconds --- www/members/check_membernoms.cgi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/www/members/check_membernoms.cgi b/www/members/check_membernoms.cgi index 7c7c604c..5531b547 100755 --- a/www/members/check_membernoms.cgi +++ b/www/members/check_membernoms.cgi @@ -57,7 +57,13 @@ def setup_data # parse nominations for names and ids (from SVN) nominations = ASF::MemberFiles.member_nominees.map do |id, hash| - {id: id, name: hash['Public Name'], nominator: hash['Nominated by']} + secs = hash['Nomination Statement'].slice_before(/Statements by Seconds/).drop(1) + if secs.size == 1 + hassec = secs.first.size > 1 # There is a seconds statement + else + hassec = false + end + {id: id, name: hash['Public Name'], nominator: hash['Nominated by'], hassec: hassec} end # preload names @@ -163,6 +169,8 @@ _html do if nominee[:name] != person.public_name _span " (as #{nominee[:name]})" end + + _i ' - No statements by seconds found' unless nominee[:hassec] end end end