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:
parent
bdef6c9adb
commit
8d5415442d
@ -28,7 +28,7 @@ def __get_previous_period(time):
|
|||||||
def __get_instance_exists(beginning, ending):
|
def __get_instance_exists(beginning, ending):
|
||||||
filters = {
|
filters = {
|
||||||
'audit_period_beginning__gte': beginning,
|
'audit_period_beginning__gte': beginning,
|
||||||
'audit_period_ending__lt': ending,
|
'audit_period_ending__lte': ending,
|
||||||
}
|
}
|
||||||
return models.InstanceExists.objects.filter(**filters)
|
return models.InstanceExists.objects.filter(**filters)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user