src/server/server.py
def clear_laps():
    '''Clear the current laps table.'''
    global RACE
    RACE.last_race_results = Results.calc_leaderboard(DB, current_race=RACE, current_profile=getCurrentProfile())
    RACE.last_race_cacheStatus = Results.CacheStatus.VALID
    RACE.laps_winner_name = None  # clear winner in first-to-X-laps race
    RACE.winning_lap_id = 0
    db_reset_current_laps() # Clear out the current laps table
    DB.session.query(Database.LapSplit).delete()
    DB.session.commit()
    logger.info('Current laps cleared')
Clear the current laps table.
Clear the current laps table.
Clear the current laps table .
def clear_laps():
    global RACE
    RACE.last_race_results = Results.calc_leaderboard(DB, current_race=RACE, current_profile=getCurrentProfile())
    RACE.last_race_cacheStatus = Results.CacheStatus.VALID
    RACE.laps_winner_name = None  
    RACE.winning_lap_id = 0
    db_reset_current_laps() 
    DB.session.query(Database.LapSplit).delete()
    DB.session.commit()
    logger.info('Current laps cleared')
def clear_laps ( ) : global RACE RACE . last_race_results = Results . calc_leaderboard ( DB , current_race = RACE , current_profile = getCurrentProfile ( ) ) RACE . last_race_cacheStatus = Results . CacheStatus . VALID RACE . laps_winner_name = None RACE . winning_lap_id = 0 db_reset_current_laps ( ) DB . session . query ( Database . LapSplit ) . delete ( ) DB . session . commit ( ) logger . info ( 'Current laps cleared' )
Clear the current laps table.
Clear the current laps table .
'''Clear the current laps table.''' # clear winner in first-to-X-laps race # Clear out the current laps table