You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2020/07/13 21:33:21 UTC

[whimsy] branch master updated: explicitly iterate over worksheets

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


The following commit(s) were added to refs/heads/master by this push:
     new 3ae12bd  explicitly iterate over worksheets
3ae12bd is described below

commit 3ae12bd539974a74a83495b4dc8851eb8fecd6a0
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Mon Jul 13 16:44:20 2020 -0400

    explicitly iterate over worksheets
---
 www/board/agenda/views/actions/financials.json.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/actions/financials.json.rb b/www/board/agenda/views/actions/financials.json.rb
index 5d42b68..afdbb5f 100644
--- a/www/board/agenda/views/actions/financials.json.rb
+++ b/www/board/agenda/views/actions/financials.json.rb
@@ -15,7 +15,7 @@ require 'active_support/core_ext/numeric/conversions'
 # https://github.com/weshatheleopard/rubyXL/issues/235
 begin
   stdout, $stdout = $stdout, File.new("/dev/null", "w")
-  worksheet = RubyXL::Parser.parse_buffer(Base64.decode64(@spreadsheet))
+  workbook = RubyXL::Parser.parse_buffer(Base64.decode64(@spreadsheet))
 ensure
   $stdout = stdout
 end
@@ -23,7 +23,7 @@ end
 # extract data
 rows = []
 
-summary = worksheet.find do |sheet|
+summary = workbook.worksheets.find do |sheet|
   sheet.sheet_name.strip.downcase == 'board summary'
 end