Exemplo n.º 1
0
def exit():
    '''
    Stuff to do at shutdown
    
    Close DBI
    '''
    dbi.close()
Exemplo n.º 2
0
def main():
    global conn, cur
    # open/create db file
    conn = dbi.init()
    conn.row_factory = sqlite3.Row
    cur = conn.cursor()

    update_vehicles()
    update_fuel()
    update_service()

    dbi.close()