Donate CPU: Updated the 'latest.html' report
This commit is contained in:
parent
629639f6ae
commit
bbebdf0ab4
|
@ -39,7 +39,7 @@ def fmt(a,b,c,d,e):
|
||||||
def latestReport(latestResults):
|
def latestReport(latestResults):
|
||||||
html = '<html><head><title>Latest daca@home results</title></head><body>\n'
|
html = '<html><head><title>Latest daca@home results</title></head><body>\n'
|
||||||
html += '<h1>Latest daca@home results</h1>'
|
html += '<h1>Latest daca@home results</h1>'
|
||||||
html += '<pre>\n<b>' + fmt('Package','Date Time ','head','1.84','Diff') + '</b>\n'
|
html += '<pre>\n<b>' + fmt('Package','Date Time ','1.84','Head','Diff') + '</b>\n'
|
||||||
|
|
||||||
# Write report for latest results
|
# Write report for latest results
|
||||||
for filename in latestResults:
|
for filename in latestResults:
|
||||||
|
@ -57,16 +57,16 @@ def latestReport(latestResults):
|
||||||
# cppcheck = line[9:]
|
# cppcheck = line[9:]
|
||||||
elif line.startswith('count: '):
|
elif line.startswith('count: '):
|
||||||
count = line.split(' ')[1:]
|
count = line.split(' ')[1:]
|
||||||
elif line.startswith('1.84 '):
|
|
||||||
lost += 1
|
|
||||||
elif line.startswith('head '):
|
elif line.startswith('head '):
|
||||||
added += 1
|
added += 1
|
||||||
|
elif line.startswith('1.84 '):
|
||||||
|
lost += 1
|
||||||
diff = ''
|
diff = ''
|
||||||
if lost > 0:
|
if lost > 0:
|
||||||
diff += '-' + str(lost)
|
diff += '-' + str(lost)
|
||||||
if added > 0:
|
if added > 0:
|
||||||
diff += '-' + str(added)
|
diff += '+' + str(added)
|
||||||
html += fmt(package, datestr, count[0], count[1], diff) + '\n'
|
html += fmt(package, datestr, count[1], count[0], diff) + '\n'
|
||||||
|
|
||||||
html += '</pre></body></html>\n'
|
html += '</pre></body></html>\n'
|
||||||
return html
|
return html
|
||||||
|
|
Loading…
Reference in New Issue