trackerv2/server/work.py
def calculate_total_batches(config):
    r"""
    Helper function to calculate the total number of batches to query

    :returns: Total count of 100-player batches
    """
    xbox_start_account = XBOX_MIN if 'start account' not in config[
        'xbox'] else config['xbox']['start account']
    xbox_max_account = XBOX_MAX if 'max account' not in config[
        'xbox'] else config['xbox']['max account']
    ps4_start_account = PS4_MIN if 'start account' not in config[
        'ps4'] else config['ps4']['start account']
    ps4_max_account = PS4_MAX if 'max account' not in config[
        'ps4'] else config['ps4']['max account']

    # Negation to convert floor division to ceiling division
    return (
        -(-(xbox_max_account - xbox_start_account) // 100) +
        (-(-(ps4_max_account - ps4_start_account) // 100))
    )
r"""
    Helper function to calculate the total number of batches to query

    :returns: Total count of 100-player batches
    
r"""
Helper function to calculate the total number of batches to query
r " " " Helper function to calculate the total number of batches to query
def calculate_total_batches(config):
    xbox_start_account = XBOX_MIN if 'start account' not in config[
        'xbox'] else config['xbox']['start account']
    xbox_max_account = XBOX_MAX if 'max account' not in config[
        'xbox'] else config['xbox']['max account']
    ps4_start_account = PS4_MIN if 'start account' not in config[
        'ps4'] else config['ps4']['start account']
    ps4_max_account = PS4_MAX if 'max account' not in config[
        'ps4'] else config['ps4']['max account']
    return (
        -(-(xbox_max_account - xbox_start_account) // 100) +
        (-(-(ps4_max_account - ps4_start_account) // 100))
    )
def calculate_total_batches ( config ) : xbox_start_account = XBOX_MIN if 'start account' not in config [ 'xbox' ] else config [ 'xbox' ] [ 'start account' ] xbox_max_account = XBOX_MAX if 'max account' not in config [ 'xbox' ] else config [ 'xbox' ] [ 'max account' ] ps4_start_account = PS4_MIN if 'start account' not in config [ 'ps4' ] else config [ 'ps4' ] [ 'start account' ] ps4_max_account = PS4_MAX if 'max account' not in config [ 'ps4' ] else config [ 'ps4' ] [ 'max account' ] return ( - ( - ( xbox_max_account - xbox_start_account ) // 100 ) + ( - ( - ( ps4_max_account - ps4_start_account ) // 100 ) ) )
r"""
Helper function to calculate the total number of batches to query
r " " " Helper function to calculate the total number of batches to query
r"""
    Helper function to calculate the total number of batches to query

    :returns: Total count of 100-player batches
    """ # Negation to convert floor division to ceiling division
Total count of 100-player batches
Total count of 100 - player batches
config