From a9d1f62737bddccb093d7a28434c976b532147f2 Mon Sep 17 00:00:00 2001 From: Eva Sebestova Date: Fri, 22 Mar 2024 09:56:17 +0100 Subject: [PATCH] Fix missing data for last day of the previous month --- nise/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nise/report.py b/nise/report.py index 47917c2c..e08f44a7 100644 --- a/nise/report.py +++ b/nise/report.py @@ -510,7 +510,7 @@ def _create_generator_dates_from_yaml(attributes, month): # when the end_date is the same as the month_end, which can happen based # on the specified --end-date parameter or on the first of the month. month_end_compare = month_end - if (month_end.month, month_end.day) != (end_date.month, end_date.day): + if month_end.day != 1: # Create a new datetime object and store it, leaving the original # month_end object unmodified. month_end_compare = month_end_compare.replace(hour=23, minute=59, second=59)