Skip to content

Commit

Permalink
formatting improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
thrashr888 committed Apr 23, 2014
1 parent 6656034 commit 3eea7de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion seoreporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def gd_upload(report, title, client, filename='tmp.xls'):

entry = gd_upload(
seoreporter.report(db, options.type, options.format, run_id),
'seoreporter - %s - %s' % (options.type, datetime.datetime.today().strftime('dd/mm/yy')),
'seoreporter - %s - %s' % (options.type, datetime.datetime.today().strftime('%Y/%m/%d')),
gd_client,
options.output
)
Expand Down
6 changes: 3 additions & 3 deletions seoreporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ def xls_format(report_type, tests, run_id):
<AllowPNG/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>6240</WindowHeight>
<WindowWidth>10000</WindowWidth>
<WindowHeight>8000</WindowHeight>
<WindowWidth>15000</WindowWidth>
<WindowTopX>120</WindowTopX>
<WindowTopY>140</WindowTopY>
<ProtectStructure>False</ProtectStructure>
Expand All @@ -285,7 +285,7 @@ def xls_row(values):
for test in tests:
if test['values'] and len(test['values']) > 0:
# header
output += '\n <Worksheet ss:Name="%s"><Table ss:ExpandedColumnCount="%s" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="65" ss:DefaultRowHeight="15">\n' % (test['name'].replace('_', ' ').title(), 2 + len(test['values'][0].keys()))
output += '\n <Worksheet ss:Name="%s"><Table ss:ExpandedColumnCount="%s" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="150" ss:DefaultRowHeight="15">\n' % (test['name'].replace('_', ' ').title(), 2 + len(test['values'][0].keys()))
output += xls_row(['Run Id'] + [o.replace('_', ' ').title() for o in test['values'][0].keys()])
# values
for row in test['values']:
Expand Down

0 comments on commit 3eea7de

Please sign in to comment.