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 ac9dafb8 Use library method
ac9dafb8 is described below

commit ac9dafb8096aa65e0a8a53136498a987ea5fa956
Author: Sebb <[email protected]>
AuthorDate: Tue Mar 12 15:12:06 2024 +0000

    Use library method
---
 www/secretary/workbench/server.rb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/www/secretary/workbench/server.rb 
b/www/secretary/workbench/server.rb
index f5a65e99..4b75f7a1 100644
--- a/www/secretary/workbench/server.rb
+++ b/www/secretary/workbench/server.rb
@@ -13,6 +13,7 @@ require 'uri'
 require 'sanitize'
 require 'escape'
 require 'time' # for iso8601
+require 'whimsy/asf/meeting-util'
 
 require_relative 'personalize'
 require_relative 'helpers'
@@ -195,11 +196,7 @@ get %r{/(\d{6})/(\w+)/_index_} do |month, hash|
   @appmtime = Wunderbar::Asset.convert(File.join(settings.views, 
'app.js.rb')).mtime.to_i
   @projects = (ASF::Podling.current+ASF::Committee.pmcs).map(&:name).sort
 
-  # Section 4.1 of the ASF bylaws provides requirements for when membership
-  # applications can be accepted.  Two days are added to cover the adjournment
-  # period of the meeting during which the vote takes place.
-  received = Dir["#{ASF::SVN['Meetings']}/2*/memapp-received.txt"].max
-  @meeting = Date.today - Date.parse(received[/\d{8}/]) <= 32 rescue true # 
rescue crash in local testing
+  @meeting = ASF::MeetingUtil.applications_valid
 
   _html :parts
 end

Reply via email to