{% extends "dashboard/main.html" %} {% block content %}
{% if is_admin %} {% endif %}
{% for record in times %} {% for a in access %} {% if record.endpoint == a.endpoint %} {% endif %} {% endfor %} {% endfor %}
  Endpoint Number of hits Average execution time (ms) Last accessed Details
Today Last 7 days Overall Today Last 7 days Overall
{{ record.endpoint }} {% for hits in hits_today %} {{ hits.count if hits.endpoint == record.endpoint }} {% endfor %} {% for hits in hits_last_days %} {{ hits.count if hits.endpoint == record.endpoint }} {% endfor %} {{ record.count }} {% for average in average_today %} {{ ((average.average*10)|round)/10 if average.endpoint == record.endpoint }} {% endfor %} {% for average in average_last_days %} {{ ((average.average*10)|round)/10 if average.endpoint == record.endpoint }} {% endfor %} {{ ((record.average*10)|round)/10 }}{{ "{:%Y-%m-%d %H:%M:%S }".format(a.last_accessed) if a.last_accessed }}Details
{% endblock %}