{% endif %}
{% if entry.Books.ratings.__len__() > 0 %}
{% for number in range((entry.Books.ratings[0].rating/2)|int(2)) %}
{% if loop.last and loop.index < 5 %}
{% for numer in range(5 - loop.index) %}
{% endfor %}
{% endif %}
{% endfor %}
{% for number in range((entry.average_rating)|float|round|int(2)) %}
{% if loop.last and loop.index < 5 %}
{% for numer in range(5 - loop.index) %}
{% endfor %}
{% endif %}
{% endfor %}