src/server/server.py
def race():
    '''Route to race management page.'''
    frequencies = [node.frequency for node in INTERFACE.nodes]
    nodes = []
    for idx, freq in enumerate(frequencies):
        if freq:
            nodes.append({
                'freq': freq,
                'index': idx
            })

    return render_template('race.html', serverInfo=serverInfo, getOption=Options.get, __=__,
        led_enabled=led_manager.isEnabled(),
        vrx_enabled=vrx_controller!=None,
        num_nodes=RACE.num_nodes,
        current_heat=RACE.current_heat, pilots=Database.Pilot,
        nodes=nodes)
Route to race management page.
Route to race management page.
Route to race management page .
def race():
    frequencies = [node.frequency for node in INTERFACE.nodes]
    nodes = []
    for idx, freq in enumerate(frequencies):
        if freq:
            nodes.append({
                'freq': freq,
                'index': idx
            })
    return render_template('race.html', serverInfo=serverInfo, getOption=Options.get, __=__,
        led_enabled=led_manager.isEnabled(),
        vrx_enabled=vrx_controller!=None,
        num_nodes=RACE.num_nodes,
        current_heat=RACE.current_heat, pilots=Database.Pilot,
        nodes=nodes)
def race ( ) : frequencies = [ node . frequency for node in INTERFACE . nodes ] nodes = [ ] for idx , freq in enumerate ( frequencies ) : if freq : nodes . append ( { 'freq' : freq , 'index' : idx } ) return render_template ( 'race.html' , serverInfo = serverInfo , getOption = Options . get , __ = __ , led_enabled = led_manager . isEnabled ( ) , vrx_enabled = vrx_controller != None , num_nodes = RACE . num_nodes , current_heat = RACE . current_heat , pilots = Database . Pilot , nodes = nodes )
Route to race management page.
Route to race management page .
'''Route to race management page.'''