Skip to content

Commit

Permalink
Compact sheet totals row code.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwax committed Mar 16, 2016
1 parent 90d4c6e commit 1fded01
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions mtg_ssm/serialization/xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,11 @@
'count',
]

ALL_SETS_SHEET_TOTALS = [
'Total',
None,
None,
None,
None,
'=SUM(F3:F65535)',
'=SUM(G3:G65535)',
'=SUM(H3:H65535)',
'=SUM(I3:I65535)',
]
ALL_SETS_SHEET_TOTALS = (
['Total'] +
[None] * 4 +
['=SUM({c}3:{c}65535)'.format(c=c) for c in 'FGHI']
)


def create_all_sets(sheet, collection):
Expand Down

0 comments on commit 1fded01

Please sign in to comment.