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 38f1beec D'oh, move code inside _body? for error reporting
38f1beec is described below

commit 38f1beeca5846fb5c72762465954cd4fdf52ccdb
Author: Shane Curcuru <[email protected]>
AuthorDate: Fri Jan 24 15:01:59 2025 -0500

    D'oh, move code inside _body? for error reporting
---
 www/members/nominations.cgi | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/www/members/nominations.cgi b/www/members/nominations.cgi
index 2ca4fc16..8ef1ef12 100755
--- a/www/members/nominations.cgi
+++ b/www/members/nominations.cgi
@@ -10,12 +10,6 @@ require 'whimsy/asf/meeting-util'
 require_relative '../../tools/parsemail'
 require 'whimsy/asf/time-utils'
 
-# Countdown until nominations for current meeting close
-timelines = ASF::MeetingUtil.get_timeline(ASF::MeetingUtil.latest_meeting_dir)
-t_now = Time.now.to_i
-t_end = Time.parse(timelines['nominations_close']).to_i
-nomclosed = t_now > t_end
-
 # link to members private-arch
 MBOX = 'https://mail-search.apache.org/members/private-arch/members/'
 
@@ -106,6 +100,13 @@ _html do
     .count {margin-left: 4em}
   }
   _body? do
+    # Countdown until nominations for current meeting close
+    latest_meeting_dir = ASF::MeetingUtil.latest_meeting_dir
+    timelines = ASF::MeetingUtil.get_timeline(latest_meeting_dir)
+    t_now = Time.now.to_i
+    t_end = Time.parse(timelines['nominations_close']).to_i
+    nomclosed = t_now > t_end
+
     _whimsy_body(
       title: PAGETITLE,
       related: {

Reply via email to