Fix small oversight

This commit is contained in:
XapaJIaMnu 2014-06-11 10:24:44 +01:00
parent a695c9b50b
commit 793aef6715

View File

@ -73,7 +73,7 @@ def gather_necessary_lines(logfile, date):
def append_date_to_table(resline):
"""Appends past dates to the html"""
cur_html = '<td>' + resline.current + '</td>'
cur_html = '<td>' + str(resline.current) + '</td>'
if resline.percentage > 0.05: #If we have improvement of more than 5%
cur_html = cur_html + '<td class="better">' + str(resline.percentage) + '</td>'
@ -168,7 +168,7 @@ def produce_html(path, global_config):
for days in past_dates:
act_date = get_prev_days(logLine2.date, days)
if linesdict[act_date][1] is not None:
logline_date = linesdict[act_date][0]
logline_date = linesdict[act_date][1]
restemp = Result(logline_date.testname, logline_date.real, logLine2.real,\
logLine2.revision, logLine2.branch, logline_date.revision, logline_date.branch)
html = html + append_date_to_table(restemp)