From 8d5415442d07dee51fd214a3a05b79d9cbd8dd02 Mon Sep 17 00:00:00 2001 From: Shantanu Tushar Date: Tue, 8 Oct 2013 07:25:36 +0000 Subject: [PATCH] the audit period ending should also take into account the value at exact midnight. This makes the script account for periodic exists events that are stored exactly at midnight. --- reports/public_outbound_bandwidth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/public_outbound_bandwidth.py b/reports/public_outbound_bandwidth.py index d03bcdb..2e905a0 100644 --- a/reports/public_outbound_bandwidth.py +++ b/reports/public_outbound_bandwidth.py @@ -28,7 +28,7 @@ def __get_previous_period(time): def __get_instance_exists(beginning, ending): filters = { 'audit_period_beginning__gte': beginning, - 'audit_period_ending__lt': ending, + 'audit_period_ending__lte': ending, } return models.InstanceExists.objects.filter(**filters)