summaryrefslogtreecommitdiff
path: root/android_benchmark_views_app/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'android_benchmark_views_app/views.py')
-rw-r--r--android_benchmark_views_app/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/android_benchmark_views_app/views.py b/android_benchmark_views_app/views.py
index 7fb82a6..041426e 100644
--- a/android_benchmark_views_app/views.py
+++ b/android_benchmark_views_app/views.py
@@ -45,6 +45,10 @@ def index(request):
# fake out data so that we can compare GCC 4.6 performance
# over the last 6 months
report = BenchmarkReport()
+ report_index = BenchmarkReport.objects.filter(series='index')
+ if report_index.count() == 1:
+ report = report_index[0]
+
runs = []
for r in history_reports:
run = BenchmarkRun()
@@ -56,6 +60,7 @@ def index(request):
return render_to_response(
"android_benchmark_views_app/index.html", {
+ 'report': report,
'reports': reports,
'runs': runs,