{% extends "modern/base.html" %} {% block title %}Database Statistics - BLOOM LIMS{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ stats_1d | sum(attribute=1) if stats_1d else 0 }}
Records (Last 24h)
{{ stats_7d | sum(attribute=1) if stats_7d else 0 }}
Records (Last 7 Days)
{{ stats_30d | sum(attribute=1) if stats_30d else 0 }}
Records (Last 30 Days)
{{ stats_1d | length if stats_1d else 0 }}
Active Object Types

Records by Object Type

{% set stats_7d_dict = dict(stats_7d) if stats_7d else {} %} {% set stats_30d_dict = dict(stats_30d) if stats_30d else {} %} {% for subtype, count_1d in stats_1d %} {% set count_7d = stats_7d_dict.get(subtype, 0) %} {% set count_30d = stats_30d_dict.get(subtype, 0) %} {% else %} {% endfor %}
Object Type (subtype) Last 1 Day Last 7 Days Last 30 Days
{{ subtype }} {{ count_1d }} {{ count_7d }} {{ count_30d }}
No records created in the last 30 days
{% endblock %}