Skip to content

Commit

Permalink
Fix missing data for last day of the previous month
Browse files Browse the repository at this point in the history
  • Loading branch information
esebesto committed Mar 22, 2024
1 parent c1bb70c commit a9d1f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nise/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9d1f62

Please sign in to comment.