diff --git a/mood/views.py b/mood/views.py index 7605045..6f32479 100644 --- a/mood/views.py +++ b/mood/views.py @@ -56,7 +56,7 @@ class StatusListView(LoginRequiredMixin, ListView): if "to" in self.request.GET: to_timestamp = datetime.strptime(self.request.GET["to"], "%Y-%m-%d") to_timestamp = to_timestamp.replace(hour=23, minute=59, second=59) - status_list = status_list.filter(timestamp__lte=self.request.GET["to"]) + status_list = status_list.filter(timestamp__lte=to_timestamp) return status_list