Skip to content

Commit

Permalink
Update meeting-util.rb to read timeline for nomination dates
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneCurcuru authored Jan 23, 2025
1 parent 1ea4afd commit d3c305a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/whimsy/asf/meeting-util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,21 @@ def self.tracker(meetingsMissed)
}]
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
Expand Down

0 comments on commit d3c305a

Please sign in to comment.