src/server/server.py
def check_emit_team_racing_status(t_laps_dict=None, **params):
    '''Checks and emits team-racing status info.'''
              # if not passed in then determine number of laps for each team
    if t_laps_dict is None:
        t_laps_dict = get_team_laps_info()[0]
    disp_str = ''
    for t_name in sorted(t_laps_dict.keys()):
        disp_str += ' <span class="team-laps">Team ' + t_name + ' Lap: ' + str(t_laps_dict[t_name][0]) + '</span>'
    if RACE.laps_winner_name is not None:
        if RACE.laps_winner_name is not RACE.status_tied_str and \
                RACE.laps_winner_name is not RACE.status_crossing:
            disp_str += '<span class="team-winner">Winner is Team ' + RACE.laps_winner_name + '</span>'
        else:
            disp_str += '<span class="team-winner">' + RACE.laps_winner_name + '</span>'
    #logger.info('Team racing status: ' + disp_str)
    emit_team_racing_status(disp_str)
Checks and emits team-racing status info.
Checks and emits team-racing status info.
Checks and emits team - racing status info .
def check_emit_team_racing_status(t_laps_dict=None, **params):
    if t_laps_dict is None:
        t_laps_dict = get_team_laps_info()[0]
    disp_str = ''
    for t_name in sorted(t_laps_dict.keys()):
        disp_str += ' <span class="team-laps">Team ' + t_name + ' Lap: ' + str(t_laps_dict[t_name][0]) + '</span>'
    if RACE.laps_winner_name is not None:
        if RACE.laps_winner_name is not RACE.status_tied_str and \
                RACE.laps_winner_name is not RACE.status_crossing:
            disp_str += '<span class="team-winner">Winner is Team ' + RACE.laps_winner_name + '</span>'
        else:
            disp_str += '<span class="team-winner">' + RACE.laps_winner_name + '</span>'
    emit_team_racing_status(disp_str)
def check_emit_team_racing_status ( t_laps_dict = None , ** params ) : if t_laps_dict is None : t_laps_dict = get_team_laps_info ( ) [ 0 ] disp_str = '' for t_name in sorted ( t_laps_dict . keys ( ) ) : disp_str += ' <span class="team-laps">Team ' + t_name + ' Lap: ' + str ( t_laps_dict [ t_name ] [ 0 ] ) + '</span>' if RACE . laps_winner_name is not None : if RACE . laps_winner_name is not RACE . status_tied_str and RACE . laps_winner_name is not RACE . status_crossing : disp_str += '<span class="team-winner">Winner is Team ' + RACE . laps_winner_name + '</span>' else : disp_str += '<span class="team-winner">' + RACE . laps_winner_name + '</span>' emit_team_racing_status ( disp_str )
Checks and emits team-racing status info.
Checks and emits team - racing status info .
'''Checks and emits team-racing status info.''' # if not passed in then determine number of laps for each team #logger.info('Team racing status: ' + disp_str)
t_laps_dict