src/server/server.py
def on_load_data(data):
    '''Allow pages to load needed data'''
    load_types = data['load_types']
    for load_type in load_types:
        if load_type == 'node_data':
            emit_node_data(nobroadcast=True)
        elif load_type == 'environmental_data':
            emit_environmental_data(nobroadcast=True)
        elif load_type == 'frequency_data':
            emit_frequency_data(nobroadcast=True)
        elif load_type == 'heat_data':
            emit_heat_data(nobroadcast=True)
        elif load_type == 'class_data':
            emit_class_data(nobroadcast=True)
        elif load_type == 'pilot_data':
            emit_pilot_data(nobroadcast=True)
        elif load_type == 'round_data':
            emit_round_data(nobroadcast=True)
        elif load_type == 'race_format':
            emit_race_format(nobroadcast=True)
        elif load_type == 'race_formats':
            emit_race_formats(nobroadcast=True)
        elif load_type == 'node_tuning':
            emit_node_tuning(nobroadcast=True)
        elif load_type == 'enter_and_exit_at_levels':
            emit_enter_and_exit_at_levels(nobroadcast=True)
        elif load_type == 'min_lap':
            emit_min_lap(nobroadcast=True)
        elif load_type == 'leaderboard':
            emit_current_leaderboard(nobroadcast=True)
        elif load_type == 'leaderboard_cache':
            emit_current_leaderboard(nobroadcast=True, use_cache=True)
        elif load_type == 'current_laps':
            emit_current_laps(nobroadcast=True)
        elif load_type == 'race_status':
            emit_race_status(nobroadcast=True)
        elif load_type == 'current_heat':
            emit_current_heat(nobroadcast=True)
        elif load_type == 'team_racing_stat_if_enb':
            emit_team_racing_stat_if_enb(nobroadcast=True)
        elif load_type == 'race_list':
            emit_race_list(nobroadcast=True)
        elif load_type == 'language':
            emit_language(nobroadcast=True)
        elif load_type == 'all_languages':
            emit_all_languages(nobroadcast=True)
        elif load_type == 'led_effect_setup':
            emit_led_effect_setup()
        elif load_type == 'led_effects':
            emit_led_effects()
        elif load_type == 'callouts':
            emit_callouts()
        elif load_type == 'imdtabler_page':
            emit_imdtabler_page(nobroadcast=True)
        elif load_type == 'vrx_list':
            emit_vrx_list(nobroadcast=True)
        elif load_type == 'cluster_status':
            CLUSTER.emitStatus()
        elif load_type == 'hardware_log_init':
            emit_current_log_file_to_socket()
Allow pages to load needed data
Allow pages to load needed data
Allow pages to load needed data
def on_load_data(data):
    load_types = data['load_types']
    for load_type in load_types:
        if load_type == 'node_data':
            emit_node_data(nobroadcast=True)
        elif load_type == 'environmental_data':
            emit_environmental_data(nobroadcast=True)
        elif load_type == 'frequency_data':
            emit_frequency_data(nobroadcast=True)
        elif load_type == 'heat_data':
            emit_heat_data(nobroadcast=True)
        elif load_type == 'class_data':
            emit_class_data(nobroadcast=True)
        elif load_type == 'pilot_data':
            emit_pilot_data(nobroadcast=True)
        elif load_type == 'round_data':
            emit_round_data(nobroadcast=True)
        elif load_type == 'race_format':
            emit_race_format(nobroadcast=True)
        elif load_type == 'race_formats':
            emit_race_formats(nobroadcast=True)
        elif load_type == 'node_tuning':
            emit_node_tuning(nobroadcast=True)
        elif load_type == 'enter_and_exit_at_levels':
            emit_enter_and_exit_at_levels(nobroadcast=True)
        elif load_type == 'min_lap':
            emit_min_lap(nobroadcast=True)
        elif load_type == 'leaderboard':
            emit_current_leaderboard(nobroadcast=True)
        elif load_type == 'leaderboard_cache':
            emit_current_leaderboard(nobroadcast=True, use_cache=True)
        elif load_type == 'current_laps':
            emit_current_laps(nobroadcast=True)
        elif load_type == 'race_status':
            emit_race_status(nobroadcast=True)
        elif load_type == 'current_heat':
            emit_current_heat(nobroadcast=True)
        elif load_type == 'team_racing_stat_if_enb':
            emit_team_racing_stat_if_enb(nobroadcast=True)
        elif load_type == 'race_list':
            emit_race_list(nobroadcast=True)
        elif load_type == 'language':
            emit_language(nobroadcast=True)
        elif load_type == 'all_languages':
            emit_all_languages(nobroadcast=True)
        elif load_type == 'led_effect_setup':
            emit_led_effect_setup()
        elif load_type == 'led_effects':
            emit_led_effects()
        elif load_type == 'callouts':
            emit_callouts()
        elif load_type == 'imdtabler_page':
            emit_imdtabler_page(nobroadcast=True)
        elif load_type == 'vrx_list':
            emit_vrx_list(nobroadcast=True)
        elif load_type == 'cluster_status':
            CLUSTER.emitStatus()
        elif load_type == 'hardware_log_init':
            emit_current_log_file_to_socket()
def on_load_data ( data ) : load_types = data [ 'load_types' ] for load_type in load_types : if load_type == 'node_data' : emit_node_data ( nobroadcast = True ) elif load_type == 'environmental_data' : emit_environmental_data ( nobroadcast = True ) elif load_type == 'frequency_data' : emit_frequency_data ( nobroadcast = True ) elif load_type == 'heat_data' : emit_heat_data ( nobroadcast = True ) elif load_type == 'class_data' : emit_class_data ( nobroadcast = True ) elif load_type == 'pilot_data' : emit_pilot_data ( nobroadcast = True ) elif load_type == 'round_data' : emit_round_data ( nobroadcast = True ) elif load_type == 'race_format' : emit_race_format ( nobroadcast = True ) elif load_type == 'race_formats' : emit_race_formats ( nobroadcast = True ) elif load_type == 'node_tuning' : emit_node_tuning ( nobroadcast = True ) elif load_type == 'enter_and_exit_at_levels' : emit_enter_and_exit_at_levels ( nobroadcast = True ) elif load_type == 'min_lap' : emit_min_lap ( nobroadcast = True ) elif load_type == 'leaderboard' : emit_current_leaderboard ( nobroadcast = True ) elif load_type == 'leaderboard_cache' : emit_current_leaderboard ( nobroadcast = True , use_cache = True ) elif load_type == 'current_laps' : emit_current_laps ( nobroadcast = True ) elif load_type == 'race_status' : emit_race_status ( nobroadcast = True ) elif load_type == 'current_heat' : emit_current_heat ( nobroadcast = True ) elif load_type == 'team_racing_stat_if_enb' : emit_team_racing_stat_if_enb ( nobroadcast = True ) elif load_type == 'race_list' : emit_race_list ( nobroadcast = True ) elif load_type == 'language' : emit_language ( nobroadcast = True ) elif load_type == 'all_languages' : emit_all_languages ( nobroadcast = True ) elif load_type == 'led_effect_setup' : emit_led_effect_setup ( ) elif load_type == 'led_effects' : emit_led_effects ( ) elif load_type == 'callouts' : emit_callouts ( ) elif load_type == 'imdtabler_page' : emit_imdtabler_page ( nobroadcast = True ) elif load_type == 'vrx_list' : emit_vrx_list ( nobroadcast = True ) elif load_type == 'cluster_status' : CLUSTER . emitStatus ( ) elif load_type == 'hardware_log_init' : emit_current_log_file_to_socket ( )
Allow pages to load needed data
Allow pages to load needed data
'''Allow pages to load needed data'''
data