From 7e14e5860f9ce19889127f50ec842a5978034db8 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 19 Dec 2017 14:10:12 -0500 Subject: [PATCH] Fixing a few dumg things --- app/app.py | 7 ------- app/templates/appci_app.html | 3 ++- app/templates/appci_branch.html | 3 ++- app/templates/base.html | 2 +- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/app/app.py b/app/app.py index 6a708dd..e3739f9 100644 --- a/app/app.py +++ b/app/app.py @@ -12,17 +12,10 @@ def sort_test_results(results): for r in results: r.level = -1 if r.level is None else r.level - print(results) - return sorted(results, key=lambda r: (-r.level, -r.score(), r.app.name)) -@main.route('/tartiflette') -@main.route('/tartiflette/') -def woopsies(): - return "Woopsies" - @main.route('/') def index(): return render_template('index.html') diff --git a/app/templates/appci_app.html b/app/templates/appci_app.html index d5d7b25..7bf6f1a 100644 --- a/app/templates/appci_app.html +++ b/app/templates/appci_app.html @@ -28,7 +28,8 @@
{{ result.level if result.level >= 0 else "?" }}
- {% for test, r in result.results.items() %} + {% for test in tests %} + {% set r = result.results[test] %}
diff --git a/app/templates/appci_branch.html b/app/templates/appci_branch.html index dba4a02..8f8c42d 100644 --- a/app/templates/appci_branch.html +++ b/app/templates/appci_branch.html @@ -32,7 +32,8 @@
{{ result.level if result.level >= 0 else "?" }}
- {% for test, r in result.results.items() %} + {% for test in tests %} + {% set r = result.results[test] %}
diff --git a/app/templates/base.html b/app/templates/base.html index 41999a8..84c7818 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -4,7 +4,7 @@ - Yunohost Roadmap Dashboard + Yunohost Dashboard