]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Fix off-by-one error when showing call quality rating
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Oct 2018 10:17:54 +0000 (11:17 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Oct 2018 10:17:54 +0000 (11:17 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/people/modules/mos.html

index 524ad747c90da9fbed85b27a21fac132d2f4d5f2..5ae9ddb3cf3d0c213eef6728d497cb29fcf25507 100644 (file)
@@ -1,6 +1,6 @@
 {% if call.mos %}
        <span class="small text-muted" title="{{ "%.2f" % call.mos }}/5">
-               {% for i in range(1, 6) %}
+               {% for i in range(5) %}
                        {% if call.mos > (i + 0.5) %}
                                <span class="fas fa-star"></span>
                        {% elif call.mos > i %}