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 e1cf4c1 only show issue text and options if inactive
e1cf4c1 is described below
commit e1cf4c1e30ca7be471e2c8fb072b9324c6d640a8
Author: Sam Ruby <[email protected]>
AuthorDate: Tue Mar 22 14:43:17 2022 -0400
only show issue text and options if inactive
---
www/members/inactive.cgi | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/www/members/inactive.cgi b/www/members/inactive.cgi
index ead01a1..d71b6a1 100755
--- a/www/members/inactive.cgi
+++ b/www/members/inactive.cgi
@@ -32,11 +32,13 @@ _html do
attendance = MeetingUtil.get_attendance(MEETINGS)
latest = MeetingUtil.get_latest(MEETINGS)
+ @meetingsMissed = (@meetingsMissed || 3).to_i
+
# get static/dynamic tracker
begin
tracker = JSON.parse(IO.read(File.join(latest, 'non-participants.json')))
rescue Errno::ENOENT => err
- meetingsMissed = (@meetingsMissed || 3).to_i
+ meetingsMissed = @meetingsMissed
_attendance, matrix, _dates, _nameMap =
MeetingUtil.get_attend_matrices(MEETINGS)
inactive = matrix.select do |id, _name, _first, missed|
id and missed >= meetingsMissed
@@ -57,7 +59,7 @@ _html do
'missed' => 0,
'status' => 'active - attended meetings recently'
}
- active = (tracker[@user]['missed'] == 0) && (ENV['QUERY_STRING'] == '')
+ active = (tracker[@user]['missed'] < @meetingsMissed)
_whimsy_body(
title: PAGETITLE,
subtitle: active ? 'Your Attendance Status' : 'Poll Of Inactive Members',