Commit 2592eb01 authored by Lysander Trischler's avatar Lysander Trischler

Fix hourly statistic

parent 04cf0060
......@@ -111,7 +111,7 @@
<td colspan={{ len(disciplines) }} style="text-align:center"><i>keine Übungen</i></td>
{% else %}
{% for discipline in disciplines %}
<td class=progress style="background-size:{{ (hourly[hour][discipline] / maximum[discipline] if discipline in hourly[hour] else 0) * 100 }}% 100%">
<td class=progress style="background-size:{{ (hourly[hour][discipline] / float(maximum[discipline]) if discipline in hourly[hour] else 0) * 100 }}% 100%">
{% if discipline in hourly[hour] %}
{{ hourly[hour][discipline] }}
{% else %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment