Repaired failure to redirect the latest report for a node

This commit is contained in:
Fotis Gimian
2015-05-10 21:08:36 +10:00
parent 4bdf2ecc12
commit 1b48e36ea5

View File

@@ -228,7 +228,8 @@ def report_latest(node_name):
limit=1) limit=1)
if len(reports) > 0: if len(reports) > 0:
report = reports[0]['hash'] report = reports[0]['hash']
return redirect(url_for('report', node=node_name, report_id=report)) return redirect(
url_for('report', node_name=node_name, report_id=report))
else: else:
abort(404) abort(404)