Quick and dirty fix for issue with app page because of level = '?'

This commit is contained in:
Alexandre Aubin 2019-07-20 18:16:05 +00:00
parent 3ab2cd99bf
commit 390b9fc2b5

View file

@ -66,7 +66,7 @@ def appci_app(app):
branch_results = list(app.most_recent_tests_per_branch()) branch_results = list(app.most_recent_tests_per_branch())
for r in branch_results: for r in branch_results:
r.level = -1 if r.level is None else r.level r.level = -1 if r.level in ["?", None] else int(r.level)
return render_template("appci_app.html", tests=AppCI.tests, return render_template("appci_app.html", tests=AppCI.tests,
app=app, app=app,