whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 01/02: get header from its new location
Date Thu, 16 Aug 2018 02:38:15 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 b15749500e695a6b8a40837c8ef4d456ad5b21f4
Author: Sam Ruby <rubys@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|


Mime
View raw message