#NEWLINE# def _get_datespan_filter( self ) : #NEWLINE# #INDENT# datespan = self . _get_datespan ( ) #NEWLINE# if datespan . is_valid ( ) : #NEWLINE# #INDENT# datespan . set_timezone ( self . timezone ) #NEWLINE# return ReceivedOnRangeFilter ( gte = self . startdate , lt = ( datespan . enddate + timedelta ( days = 1 ) ) )