src/dirbs/importer/importer_utils.py
def perform_operator_filename_checks(input_filename):
    """Perform filename check on the operator filename."""
    try:
        expected_start_date, expected_end_date = operator_expected_file_dates(input_filename)
    except Exception:
        raise exceptions.FilenameCheckRawException(
            'Invalid filename - must be in format <operator_id>_<YYYYMMDD>_<YYYYMMDD>.zip instead received {0}'
            .format(input_filename))

    if expected_end_date < expected_start_date:
        raise exceptions.FilenameCheckRawException(
            'Invalid filename - start date later than end date in filename {0}'.format(input_filename))

    if expected_start_date > datetime.date.today():
        raise exceptions.FilenameCheckRawException(
            'Invalid filename - start date in the future in filename {0}'.format(input_filename))
Perform filename check on the operator filename.
Perform filename check on the operator filename.
Perform filename check on the operator filename .
def perform_operator_filename_checks(input_filename):
    try:
        expected_start_date, expected_end_date = operator_expected_file_dates(input_filename)
    except Exception:
        raise exceptions.FilenameCheckRawException(
            'Invalid filename - must be in format <operator_id>_<YYYYMMDD>_<YYYYMMDD>.zip instead received {0}'
            .format(input_filename))
    if expected_end_date < expected_start_date:
        raise exceptions.FilenameCheckRawException(
            'Invalid filename - start date later than end date in filename {0}'.format(input_filename))
    if expected_start_date > datetime.date.today():
        raise exceptions.FilenameCheckRawException(
            'Invalid filename - start date in the future in filename {0}'.format(input_filename))
def perform_operator_filename_checks ( input_filename ) : try : expected_start_date , expected_end_date = operator_expected_file_dates ( input_filename ) except Exception : raise exceptions . FilenameCheckRawException ( 'Invalid filename - must be in format <operator_id>_<YYYYMMDD>_<YYYYMMDD>.zip instead received {0}' . format ( input_filename ) ) if expected_end_date < expected_start_date : raise exceptions . FilenameCheckRawException ( 'Invalid filename - start date later than end date in filename {0}' . format ( input_filename ) ) if expected_start_date > datetime . date . today ( ) : raise exceptions . FilenameCheckRawException ( 'Invalid filename - start date in the future in filename {0}' . format ( input_filename ) )
Perform filename check on the operator filename.
Perform filename check on the operator filename .
"""Perform filename check on the operator filename."""
input_filename