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.
This commit is contained in:
Shantanu Tushar 2013-10-08 07:25:36 +00:00
parent bdef6c9adb
commit 8d5415442d

View File

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