diff --git a/tools/dashboard/generate_dashboard.py b/tools/dashboard/generate_dashboard.py
index 76b469320c..689f7caed4 100755
--- a/tools/dashboard/generate_dashboard.py
+++ b/tools/dashboard/generate_dashboard.py
@@ -30,9 +30,9 @@ def main():
config.read(config_fn)
if(path.exists(status_fn)):
- last_change = eval(open(status_fn).read())
+ last_ok = eval(open(status_fn).read())
else:
- last_change = dict()
+ last_ok = dict()
svn_info = check_output("svn info svn://svn.code.sf.net/p/cp2k/code/trunk".split())
trunk_revision = int(re.search('Last Changed Rev: (\d+)\n', svn_info).group(1))
@@ -76,7 +76,7 @@ def main():
except:
print traceback.print_exc()
report = dict()
- report['status'] = "UNKOWN"
+ report['status'] = "UNKOWN"
report['summary'] = "Could not retrieve and parse report"
output += '
'
@@ -84,7 +84,7 @@ def main():
output += '| %s | '%(link_url, name)
else:
output += '%s | '%name
- output += '%s | '%host
+ output += '%s | '%host
#Status
if(report['status'] == "OK"):
@@ -98,8 +98,8 @@ def main():
#Revision
if(report.has_key('revision')):
output += rev_link(report['revision'], trunk_revision)
- if(not last_change.has_key(s) or last_change[s][0]!=report['status']):
- last_change[s] = (report['status'], report['revision'])
+ if(report['status'] == "OK"):
+ last_ok[s] = report['revision']
else:
output += 'N/A | '
@@ -107,10 +107,13 @@ def main():
output += '%s | '%report['summary']
#Since
- if(last_change.has_key(s)):
- output += rev_link(last_change[s][1], trunk_revision)
+ if(report['status'] != "OK"):
+ if(last_ok.has_key(s)):
+ output += rev_link(last_ok[s]+1, trunk_revision)
+ else:
+ output += 'N/A | '
else:
- output += 'N/A | '
+ output += ' | '
output += '
\n\n'
@@ -118,7 +121,7 @@ def main():
output += 'Page last updated: %s
\n'%now.isoformat()
output += '