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 fc5a9022 Show pmc count separately
fc5a9022 is described below

commit fc5a90220d2abbc3920a2785eab8ccbf191aa941
Author: Sebb <[email protected]>
AuthorDate: Tue Jan 3 21:54:52 2023 +0000

    Show pmc count separately
---
 www/roster/public_committee_info.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/roster/public_committee_info.rb 
b/www/roster/public_committee_info.rb
index e49099af..ffb02c53 100644
--- a/www/roster/public_committee_info.rb
+++ b/www/roster/public_committee_info.rb
@@ -57,6 +57,7 @@ committees = ASF::Committee.load_committee_info
 info = {
   last_updated: ASF::Committee.svn_change,
   committee_count: committees.size,
+  pmc_count: 0,
   roster_counts: nil
 }
 
@@ -79,6 +80,7 @@ info[:committees] = committees.map {|committee|
     roster: committee.roster.sort.to_h, # sort entries by uid
     pmc: committee.pmc?
   }
+  info[:pmc_count] += 1 if committee.pmc?
   roster_counts[cname] = committee.roster.size
   data[:paragraph] = committee.paragraph if committee.paragraph
   [cname, data]

Reply via email to