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