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

rubys 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 d7841cf  add more info
d7841cf is described below

commit d7841cf0aeb315ba75a225ffa296863555c924b6
Author: Sam Ruby <[email protected]>
AuthorDate: Thu Mar 24 10:14:05 2022 -0400

    add more info
---
 lib/whimsy/asf/meeting-util.rb | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/lib/whimsy/asf/meeting-util.rb b/lib/whimsy/asf/meeting-util.rb
index 08dd35c..0b898ca 100644
--- a/lib/whimsy/asf/meeting-util.rb
+++ b/lib/whimsy/asf/meeting-util.rb
@@ -202,14 +202,20 @@ module ASF
       cur_mtg_dir = MeetingUtil.get_latest(meetings)
       current_status = self.current_status(cur_mtg_dir)
 
-      _attendance, matrix, _dates, _nameMap = 
MeetingUtil.get_attend_matrices(meetings)
+      _attendance, matrix, dates, _nameMap = 
MeetingUtil.get_attend_matrices(meetings)
       inactive = matrix.select do |id, _name, _first, missed|
         id and missed >= meetingsMissed
       end
     
-      Hash[inactive.map {|id, name, _first, missed|
-        [id, {'name' => name, 'missed' => missed, 'status' => 
current_status[id]}]
+      Hash[inactive.map {|id, name, first, missed|
+        [id, {
+          'name' => name,
+          'missed' => missed,
+          'status' => current_status[id],
+          'since' => dates[-first-1] || dates.first,
+          'last' => dates[-missed-1]
         }]
+      }]
     end
   end
 end

Reply via email to