From 155f4ff3049c7c8a1ea6899e89a824d151ca831e Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Wed, 19 Jan 2022 14:13:25 +0100 Subject: [PATCH] # Hotfix * fixes bug where report creation would fail --- analysis/utils/report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analysis/utils/report.py b/analysis/utils/report.py index 960ca2cc..996f87b5 100644 --- a/analysis/utils/report.py +++ b/analysis/utils/report.py @@ -231,8 +231,8 @@ class TimespanReport: intervention__responsible__conservation_office__id=id, intervention__legal__registration_date__gt=LKOMPVZVO_PUBLISH_DATE, deleted=None, - intervention__created__date__timestamp__gte=date_from, - intervention__created__date__timestamp__lte=date_to, + intervention__created__timestamp__date__gte=date_from, + intervention__created__timestamp__date__lte=date_to, ) self.queryset_checked = self.queryset.filter( intervention__checked__isnull=False