This is an automated email from the ASF dual-hosted git repository.

curcuru 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 46b5a34f Move potential errors inside _body?
46b5a34f is described below

commit 46b5a34f5c5633d029b5387b376247f04fb7f92e
Author: Shane Curcuru <[email protected]>
AuthorDate: Mon Jan 27 14:54:24 2025 -0500

    Move potential errors inside _body?
---
 www/members/non-participants.cgi | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/www/members/non-participants.cgi b/www/members/non-participants.cgi
index 4c37fd5d..2a643aa3 100755
--- a/www/members/non-participants.cgi
+++ b/www/members/non-participants.cgi
@@ -15,13 +15,6 @@ cur_mtg_dir = ASF::MeetingUtil.get_latest(MEETINGS)
 meeting = File.basename(cur_mtg_dir)
 today = Date.today.strftime('%Y%m%d')
 
-# look for recent activity if there is an upcoming meeting
-if meeting > today
-  current_status = ASF::MeetingUtil.current_status(cur_mtg_dir)
-else
-  current_status = lambda {|id| 'No response'}
-end
-
 # separator / is added when link is generated
 ROSTER = "/roster/committer"
 if not ENV['QUERY_STRING'] or ENV['QUERY_STRING'].include? 'json'
@@ -32,6 +25,12 @@ end
 _html do
   @meetingsMissed = (@meetingsMissed || 3).to_i
   _body? do
+    # look for recent activity if there is an upcoming meeting
+    if meeting > today
+      current_status = ASF::MeetingUtil.current_status(cur_mtg_dir)
+    else
+      current_status = lambda {|id| 'No response'}
+    end
     attendance, matrix, dates, nameMap = 
ASF::MeetingUtil.get_attend_matrices(MEETINGS)
     _whimsy_body(
       title: PAGETITLE,

Reply via email to