Fixing a few dumg things

This commit is contained in:
Alexandre Aubin 2017-12-19 14:10:12 -05:00
parent 34f31d00a4
commit 7e14e5860f
4 changed files with 5 additions and 10 deletions

View file

@ -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')

View file

@ -28,7 +28,8 @@
</td>
<td class="ci-app-level" value="{{ result.level }}">
<div title="Level"><strong>{{ result.level if result.level >= 0 else "?" }}</strong></div></td>
{% for test, r in result.results.items() %}
{% for test in tests %}
{% set r = result.results[test] %}
<td class="ci-app-test-result">
<div title="{{ test }}" value="{{ r }}"></div>
</td>

View file

@ -32,7 +32,8 @@
</td>
<td class="ci-app-level" value="{{ result.level }}">
<div title="Level"><strong>{{ result.level if result.level >= 0 else "?" }}</strong></div></td>
{% for test, r in result.results.items() %}
{% for test in tests %}
{% set r = result.results[test] %}
<td class="ci-app-test-result">
<div title="{{ test }}" value="{{ r }}"></div>
</td>

View file

@ -4,7 +4,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Yunohost Roadmap Dashboard</title>
<title>Yunohost Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" media="screen">