src/dirbs/importer/importer_utils.py
def operator_expected_file_dates(input_filename):
    """Returns the expected date range for this import based solely on the filename."""
    filename = os.path.basename(os.path.splitext(input_filename)[0])
    start, end = filename.split('_')[-2:]
    return datetime.datetime.strptime(start, '%Y%m%d').date(), datetime.datetime.strptime(end, '%Y%m%d').date()
Returns the expected date range for this import based solely on the filename.
Returns the expected date range for this import based solely on the filename.
Returns the expected date range for this import based solely on the filename .
def operator_expected_file_dates(input_filename):
    filename = os.path.basename(os.path.splitext(input_filename)[0])
    start, end = filename.split('_')[-2:]
    return datetime.datetime.strptime(start, '%Y%m%d').date(), datetime.datetime.strptime(end, '%Y%m%d').date()
def operator_expected_file_dates ( input_filename ) : filename = os . path . basename ( os . path . splitext ( input_filename ) [ 0 ] ) start , end = filename . split ( '_' ) [ - 2 : ] return datetime . datetime . strptime ( start , '%Y%m%d' ) . date ( ) , datetime . datetime . strptime ( end , '%Y%m%d' ) . date ( )
Returns the expected date range for this import based solely on the filename.
Returns the expected date range for this import based solely on the filename .
"""Returns the expected date range for this import based solely on the filename."""
input_filename