From: Michael Tremer Date: Thu, 18 Oct 2018 10:17:54 +0000 (+0100) Subject: people: Fix off-by-one error when showing call quality rating X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2521dbf58023cfcb57a3a89f18cf9d2e3d47ca4;p=ipfire.org.git people: Fix off-by-one error when showing call quality rating Signed-off-by: Michael Tremer --- diff --git a/src/templates/people/modules/mos.html b/src/templates/people/modules/mos.html index 524ad747..5ae9ddb3 100644 --- a/src/templates/people/modules/mos.html +++ b/src/templates/people/modules/mos.html @@ -1,6 +1,6 @@ {% if call.mos %} - {% for i in range(1, 6) %} + {% for i in range(5) %} {% if call.mos > (i + 0.5) %} {% elif call.mos > i %}