Fix activitystats signature

This commit is contained in:
Kumi 2021-02-26 07:26:52 +01:00
parent 040ffe0fb3
commit e7f0e07a99
2 changed files with 2 additions and 2 deletions

View file

@ -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))

View file

@ -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):