{% extends 'layouts/app.html' %} {% import 'macros/status.html' as s%} {% import 'macros/rating.html'as r %} {% block title %}Statistic{% endblock %} {% block body %}
    Status statistic
    {% for status, count in status_zip %}
  1. {{ s.render_status(status) }}: {{ count }}
  2. {% endfor %}
Genre statistic
    {% for genre, count in genre_zip %}
  1. {{ genre }}: {{ count }}
  2. {% endfor %}
Rating statistic
    {% for i, count in rating_zip%}
  1. {{ r.rander_rating(i) }}: {{ count }}
  2. {% endfor %}
Total Book: {{ total_book }}
{% endblock %}