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 2018/08/16 02:38:15 UTC

[whimsy] 01/02: get header from its new location

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 b15749500e695a6b8a40837c8ef4d456ad5b21f4
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Aug 15 22:37:14 2018 -0400

    get header from its new location
---
 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 25a7d92..e2e1f76 100644
--- a/www/board/agenda/views/actions/financials.json.rb
+++ b/www/board/agenda/views/actions/financials.json.rb
@@ -49,12 +49,12 @@ worksheet['Board Summary'].each do |row|
   rows << data
 end
 
+headings = rows.delete_at(2)
+
 # delete front and back matter
 rows.shift until rows[0][0].start_with? 'Current Balances'
 rows.pop until rows.last[0].start_with? 'Net Income'
 
-headings = rows.delete_at(1)
-
 # adjust spacing of current balances
 blank = rows.index {|row| row.join.strip == ''}
 rows[1..blank].each do |row|