From 539ee037092b3be2ad5b8ce8fde1ed6b14ea851c Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Fri, 26 Feb 2021 07:26:52 +0100 Subject: [PATCH] Fix activitystats signature --- mood/statistics.py | 2 +- mood/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mood/statistics.py b/mood/statistics.py index e81235d..518d583 100644 --- a/mood/statistics.py +++ b/mood/statistics.py @@ -59,7 +59,7 @@ def moodstats(user, mindate=None, maxdate=None, days=7): return output -def activitystats(user, mindate=None, maxdate=None, days=7): +def activitystats(user): maxdate = maxdate or timezone.now() mindate = mindate or (maxdate - relativedelta(days=days)) diff --git a/mood/views.py b/mood/views.py index 221f29e..50be667 100644 --- a/mood/views.py +++ b/mood/views.py @@ -345,7 +345,7 @@ class MoodStatisticsView(LoginRequiredMixin, TemplateView): context = super().get_context_data(**kwargs) context["title"] = "Statistics" - context["activities"] = activitystats(self.request.user, mindate, maxdate) + context["activities"] = activitystats(self.request.user) return context class MoodCSVView(LoginRequiredMixin, View):