src/dirbs/reports/csv_reports.py
def _extra_missing_operator_check(config: callable, conn: callable, month: int,
                                  year: int, logger: callable, disable_data_check: bool) -> None:
    """
    Process extra missing operator check.

    Arguments:
        config: DIRBS config object
        conn: DIRBS PostgreSQL connection object
        month: month of the report
        year: year of the report
        logger: DIRBS logger object
        disable_data_check: bool to dosable data check
    Returns:
        None
    """
    # Validate that data is present for all configured operators and only configured operators
    try:
        _validate_data_partitions(config, conn, month, year, logger, disable_data_check)
    except (exceptions.ExtraOperatorDataException, exceptions.MissingOperatorDataException):
        logger.error('Extra or missing operator data detected above will skew report counts, so report '
                     'will not be generated. To ignore this warning, use the --disable-data-check option')
        sys.exit(1)

    Process extra missing operator check.

    Arguments:
        config: DIRBS config object
        conn: DIRBS PostgreSQL connection object
        month: month of the report
        year: year of the report
        logger: DIRBS logger object
        disable_data_check: bool to dosable data check
    Returns:
        None
    
Process extra missing operator check.
Process extra missing operator check .
def _extra_missing_operator_check(config: callable, conn: callable, month: int,
                                  year: int, logger: callable, disable_data_check: bool) -> None:
    try:
        _validate_data_partitions(config, conn, month, year, logger, disable_data_check)
    except (exceptions.ExtraOperatorDataException, exceptions.MissingOperatorDataException):
        logger.error('Extra or missing operator data detected above will skew report counts, so report '
                     'will not be generated. To ignore this warning, use the --disable-data-check option')
        sys.exit(1)
def _extra_missing_operator_check ( config : callable , conn : callable , month : int , year : int , logger : callable , disable_data_check : bool ) -> None : try : _validate_data_partitions ( config , conn , month , year , logger , disable_data_check ) except ( exceptions . ExtraOperatorDataException , exceptions . MissingOperatorDataException ) : logger . error ( 'Extra or missing operator data detected above will skew report counts, so report ' 'will not be generated. To ignore this warning, use the --disable-data-check option' ) sys . exit ( 1 )
Process extra missing operator check.
Process extra missing operator check .
"""
    Process extra missing operator check.

    Arguments:
        config: DIRBS config object
        conn: DIRBS PostgreSQL connection object
        month: month of the report
        year: year of the report
        logger: DIRBS logger object
        disable_data_check: bool to dosable data check
    Returns:
        None
    """ # Validate that data is present for all configured operators and only configured operators
None
config
callable
DIRBS config object
DIRBS config object
conn
callable
DIRBS PostgreSQL connection object
DIRBS PostgreSQL connection object
month
int
month of the report
month of the report
year
int
year of the report
year of the report
logger
callable
DIRBS logger object
DIRBS logger object
disable_data_check
bool
bool to dosable data check
bool to dosable data check