diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-02-06 10:46:47 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-02-06 10:46:47 +0200 |
commit | 4c7ea5d0407d8f0582b24d237302a46787bbd94f (patch) | |
tree | a0fc8836a7015a89a979cb317e3f7941ed2164c5 /obbenchlib/templates | |
parent | 003d8318397fa47f53c6af856639293ba2d70507 (diff) | |
download | obnam-benchmarks-4c7ea5d0407d8f0582b24d237302a46787bbd94f.tar.gz |
Fix index.j2 to handle multiple benchmarks
Diffstat (limited to 'obbenchlib/templates')
-rw-r--r-- | obbenchlib/templates/index.j2 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/obbenchlib/templates/index.j2 b/obbenchlib/templates/index.j2 index 84dbb1c..4d84a98 100644 --- a/obbenchlib/templates/index.j2 +++ b/obbenchlib/templates/index.j2 @@ -19,7 +19,9 @@ <td>{{ row.commit_date }}</td> <td>{{ '%.7s'|format(row.commit_id) }}</td> {% for name in benchmark_names %} + {% if name in row %} <td><a href="{{ name }}.html">{{ '%.1f'|format(row[name]) }}</a></td> + {% endif %} {% endfor %} </tr> {% endfor %} |