From 1bcf3a72f3d14c491ee1c92069826970dee90f8d Mon Sep 17 00:00:00 2001 From: hblankenship Date: Wed, 15 Jan 2025 20:24:08 -0600 Subject: [PATCH] Life is ruff --- dojo/filters.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dojo/filters.py b/dojo/filters.py index cbc58018d39..09a6a5cfe2a 100644 --- a/dojo/filters.py +++ b/dojo/filters.py @@ -1556,9 +1556,10 @@ def filter_mitigated_on(self, queryset, name, value): # we have a simple date without a time, lets get a range from this morning to tonight at 23:59:59:999 nextday = value + timedelta(days=1) return queryset.filter(mitigated__gte=value, mitigated__lt=nextday) - + return queryset.filter(mitigated=value) + class PercentageFilter(NumberFilter): def __init__(self, *args, **kwargs): kwargs["method"] = self.filter_percentage @@ -1730,9 +1731,10 @@ def filter_mitigated_on(self, queryset, name, value): # we have a simple date without a time, lets get a range from this morning to tonight at 23:59:59:999 nextday = value + timedelta(days=1) return queryset.filter(mitigated__gte=value, mitigated__lt=nextday) - + return queryset.filter(mitigated=value) + class FindingFilterWithoutObjectLookups(FindingFilterHelper, FindingTagStringFilter): test__engagement__product__prod_type = NumberFilter(widget=HiddenInput()) test__engagement__product = NumberFilter(widget=HiddenInput())