diff --git a/main/extra_func.py b/main/extra_func.py index c41625a..1aade32 100644 --- a/main/extra_func.py +++ b/main/extra_func.py @@ -373,7 +373,7 @@ class StatisticData: for key, value in stat.items(): current_month_start = max(self.start_date, date(year=key.year, month=key.month, day=1)) current_month_end = min(self.end_date, last_day_of_month(date(year=key.year, month=key.month, day=1))) - index = ' - '.join([str(current_month_start), str(current_month_end)]) + index = (current_month_start, current_month_end) if new_stat.get(index): new_stat[index] += value else: diff --git a/main/templates/pages/statistic.html b/main/templates/pages/statistic.html index 202d8f2..87bea80 100644 --- a/main/templates/pages/statistic.html +++ b/main/templates/pages/statistic.html @@ -91,7 +91,7 @@ {% if interval == 'days' %} {{ date | date:'d.m' }} {% else %} - {{ date }} + {{ date.1 | date:'F' }} {% endif %} {% endfor %}