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

sebb 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 337c1ab  Count retired entries
337c1ab is described below

commit 337c1abf9d3efd48b9ecf81da500880b4526520f
Author: Sebb <[email protected]>
AuthorDate: Sat Sep 11 00:42:26 2021 +0100

    Count retired entries
---
 www/roster/public_committee_info.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/roster/public_committee_info.rb 
b/www/roster/public_committee_info.rb
index 26890d2..e90a588 100644
--- a/www/roster/public_committee_info.rb
+++ b/www/roster/public_committee_info.rb
@@ -38,6 +38,7 @@
 # If a second parameter is provided, also creates committee-retired info of 
the form:
 #{
 #  "last_updated": "2016-03-04 04:50:00 UTC",
+#  "retired_count": 123,
 #  "retired": {
 #    "abdera": {
 #      "display_name": "Abdera",
@@ -207,7 +208,8 @@ if ARGV.length >= 2
       end
     end
   end
-
+  
+  attic[:retired_count] = data.size
   attic[:retired] = data
 
   public_json_output(attic) # uses first ARGV entry

Reply via email to