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 2019/11/30 16:26:19 UTC

[whimsy] branch master updated: No need to show the estimated count here

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 aea0846  No need to show the estimated count here
aea0846 is described below

commit aea0846bcb61295df1e11f5e25abc3b80f39996e
Author: Sebb <se...@apache.org>
AuthorDate: Sat Nov 30 16:25:58 2019 +0000

    No need to show the estimated count here
---
 www/secretary/workbench/views/actions/icla2.json.rb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/www/secretary/workbench/views/actions/icla2.json.rb b/www/secretary/workbench/views/actions/icla2.json.rb
index e6a180b..0157a3f 100644
--- a/www/secretary/workbench/views/actions/icla2.json.rb
+++ b/www/secretary/workbench/views/actions/icla2.json.rb
@@ -59,12 +59,8 @@ end
 #                          file new document                           #
 ########################################################################
 
-# determine initial value for the counter
-count = (Dir["#{svndir}/#@filename/*"].
-      map {|name| name[/.*(\d+)\./, 1] || 1}.map(&:to_i).max || 1) + 1
-
 # write attachment (+ signature, if present) to the documents/iclas directory
-task "svn commit documents/iclas/#@filename/icla#{count}#{fileext}" do
+task "svn commit documents/iclas/#@filename/iclaN#{fileext}" do
   form do
     _input value: @selected, name: 'selected'