You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/06/22 12:09:21 UTC

[whimsy] branch master updated: Warn if cannot find committee

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 c3a4872  Warn if cannot find committee
c3a4872 is described below

commit c3a4872e56621b0127d8698595cc6db9f8efa7f3
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jun 22 13:09:13 2021 +0100

    Warn if cannot find committee
---
 www/roster/public_committee_info.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/www/roster/public_committee_info.rb b/www/roster/public_committee_info.rb
index 3c15e39..a576628 100644
--- a/www/roster/public_committee_info.rb
+++ b/www/roster/public_committee_info.rb
@@ -174,6 +174,8 @@ if ARGV.length >= 2
   
   data = {}
   
+  active = info[:committees].keys
+
   metadata.each do |key, value|
     retired = value[:retired]
     if retired
@@ -187,6 +189,10 @@ if ARGV.length >= 2
       if mlists.size > 0
         data[key][:mlists] = mlists
       end
+    else
+      unless active.include? key
+        Wunderbar.warn "Has '#{key}'' retired? Could not find it in committee-info.txt!"
+      end
     end
   end