whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 01/02: allow reports to be updated
Date Sat, 03 Aug 2019 15:38:45 GMT
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

commit 23a3f1c8b27866267b469c4c34619169c5f69fe7
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Fri Aug 2 17:03:40 2019 -0400

    allow reports to be updated
---
 www/board/agenda/views/actions/post.json.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/actions/post.json.rb b/www/board/agenda/views/actions/post.json.rb
index f5f1351..f6cd18a 100644
--- a/www/board/agenda/views/actions/post.json.rb
+++ b/www/board/agenda/views/actions/post.json.rb
@@ -19,9 +19,9 @@ Agenda.update(@agenda, @message) do |agenda|
     project = ASF::Committee.find(@project).display_name
     parsed.each do |report|
       if report['title'] == project
-        raise "report already posted" unless report['missing']
+        raise "report already posted" unless @digest or report['missing']
         @attach = report[:attach]
-        @digest = report['digest']
+        @digest ||= report['digest']
       end
     end
   end


Mime
View raw message