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 d3c305af Update meeting-util.rb to read timeline for nomination dates
d3c305af is described below

commit d3c305afeac29235bc25e02c0edcbbfeb22d2a31
Author: Shane Curcuru <[email protected]>
AuthorDate: Thu Jan 23 17:32:33 2025 -0500

    Update meeting-util.rb to read timeline for nomination dates
---
 lib/whimsy/asf/meeting-util.rb | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/meeting-util.rb b/lib/whimsy/asf/meeting-util.rb
index 29aafd8d..dacacd0a 100644
--- a/lib/whimsy/asf/meeting-util.rb
+++ b/lib/whimsy/asf/meeting-util.rb
@@ -384,9 +384,21 @@ module ASF
       }]
     end
 
+    # get the times from the timeline file
+    # returns: hash with keys: nominations_close:, polls_close:, 
meeting_start, meeting_close:
+    def self.get_invite_times(cur_mtg_dir)
+      times = MeetingUtil.get_timeline(cur_mtg_dir)
+      return {
+        nominations_close: times['nominations_close_iso'],
+        polls_close: times['polls_close_iso'],
+        meeting_start: times['meeting_start_iso'],
+        meeting_end: times['meeting_end_iso'],
+      }
+    end
+
     # get the times from the VCAL events file
     # returns: hash with keys: nominations_close:, polls_close:, 
meeting_start, meeting_close:
-    def self.get_invite_times
+    def self.get_invite_times_ical
       times = {}
       File.readlines(File.join(latest_meeting_dir, 
VCAL_EVENTS_FILENAME)).slice_before(/^BEGIN:VEVENT/).drop(1).each do |ev|
         uid = nil

Reply via email to