src/server/server.py
def emit_enter_and_exit_at_levels(**params):
    '''Emits enter-at and exit-at levels for nodes.'''
    profile = getCurrentProfile()
    profile_enter_ats = json.loads(profile.enter_ats)
    profile_exit_ats = json.loads(profile.exit_ats)

    emit_payload = {
        'enter_at_levels': profile_enter_ats["v"][:RACE.num_nodes],
        'exit_at_levels': profile_exit_ats["v"][:RACE.num_nodes]
    }
    if ('nobroadcast' in params):
        emit('enter_and_exit_at_levels', emit_payload)
    else:
        SOCKET_IO.emit('enter_and_exit_at_levels', emit_payload)
Emits enter-at and exit-at levels for nodes.
Emits enter-at and exit-at levels for nodes.
Emits enter - at and exit - at levels for nodes .
def emit_enter_and_exit_at_levels(**params):
    profile = getCurrentProfile()
    profile_enter_ats = json.loads(profile.enter_ats)
    profile_exit_ats = json.loads(profile.exit_ats)
    emit_payload = {
        'enter_at_levels': profile_enter_ats["v"][:RACE.num_nodes],
        'exit_at_levels': profile_exit_ats["v"][:RACE.num_nodes]
    }
    if ('nobroadcast' in params):
        emit('enter_and_exit_at_levels', emit_payload)
    else:
        SOCKET_IO.emit('enter_and_exit_at_levels', emit_payload)
def emit_enter_and_exit_at_levels ( ** params ) : profile = getCurrentProfile ( ) profile_enter_ats = json . loads ( profile . enter_ats ) profile_exit_ats = json . loads ( profile . exit_ats ) emit_payload = { 'enter_at_levels' : profile_enter_ats [ "v" ] [ : RACE . num_nodes ] , 'exit_at_levels' : profile_exit_ats [ "v" ] [ : RACE . num_nodes ] } if ( 'nobroadcast' in params ) : emit ( 'enter_and_exit_at_levels' , emit_payload ) else : SOCKET_IO . emit ( 'enter_and_exit_at_levels' , emit_payload )
Emits enter-at and exit-at levels for nodes.
Emits enter - at and exit - at levels for nodes .
'''Emits enter-at and exit-at levels for nodes.'''