diff --git a/counter/models.py b/counter/models.py index ad6c0306..30ab993e 100644 --- a/counter/models.py +++ b/counter/models.py @@ -535,6 +535,9 @@ class Counter(models.Model): .exclude(perm_sum=None) .order_by("-perm_sum") ) + + def get_stats_starting_date(self) -> date: + return get_start_of_semester() def get_top_customers(self, since=get_start_of_semester()) -> QuerySet: """ diff --git a/counter/templates/counter/stats.jinja b/counter/templates/counter/stats.jinja index 03b7f4e0..7fe668fd 100644 --- a/counter/templates/counter/stats.jinja +++ b/counter/templates/counter/stats.jinja @@ -11,7 +11,7 @@ {% block content %}