Fix activitystats signature
This commit is contained in:
parent
040ffe0fb3
commit
e7f0e07a99
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue