src/server/server.py
def db_reset_pilots():
    '''Resets database pilots to default.'''
    DB.session.query(Database.Pilot).delete()
    for node in range(RACE.num_nodes):
        DB.session.add(Database.Pilot(callsign='Callsign {0}'.format(node+1), \
            name='Pilot {0} Name'.format(node+1), team=DEF_TEAM_NAME, phonetic=''))
    DB.session.commit()
    logger.info('Database pilots reset')
Resets database pilots to default.
Resets database pilots to default.
Resets database pilots to default .
def db_reset_pilots():
    DB.session.query(Database.Pilot).delete()
    for node in range(RACE.num_nodes):
        DB.session.add(Database.Pilot(callsign='Callsign {0}'.format(node+1), \
            name='Pilot {0} Name'.format(node+1), team=DEF_TEAM_NAME, phonetic=''))
    DB.session.commit()
    logger.info('Database pilots reset')
def db_reset_pilots ( ) : DB . session . query ( Database . Pilot ) . delete ( ) for node in range ( RACE . num_nodes ) : DB . session . add ( Database . Pilot ( callsign = 'Callsign {0}' . format ( node + 1 ) , name = 'Pilot {0} Name' . format ( node + 1 ) , team = DEF_TEAM_NAME , phonetic = '' ) ) DB . session . commit ( ) logger . info ( 'Database pilots reset' )
Resets database pilots to default.
Resets database pilots to default .
'''Resets database pilots to default.'''