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 2016/09/20 14:13:40 UTC

[whimsy] branch master updated: Allow for null date value (e.g. syntax error in file)

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

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  7705893   Allow for null date value (e.g. syntax error in file)
7705893 is described below

commit 7705893ebfc90e92d723581375f57f2dd3c582a6
Author: Sebb <se...@apache.org>
AuthorDate: Tue Sep 20 15:13:31 2016 +0100

    Allow for null date value (e.g. syntax error in file)
---
 www/roster/public_committee_info.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/roster/public_committee_info.rb b/www/roster/public_committee_info.rb
index 52d2584..0a10292 100644
--- a/www/roster/public_committee_info.rb
+++ b/www/roster/public_committee_info.rb
@@ -84,6 +84,10 @@ if changed? and @old_file
       entry[:roster].each { |name, value|
         if !previouspmc['roster'][name] # new name, check the date is OK
           newdate = value[:date]
+          if newdate == nil
+            Wunderbar.warn "Un-dated member for #{pmc}: #{name} #{value[:name]} #{newdate}"
+            next
+          end
           if newdate <= updated_day1 and newdate >= updated_day2 # in range
             Wunderbar.info "New member for #{pmc}: #{name} #{value[:name]} #{newdate}"
           elsif newdate > updated_day1

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].