def single_flight_detection(values_list):
    """Determines the number of flights and splits the values list into an index list and a new values_list"""
    flight_data_list = []
    number_of_flights = len(values_list)
    if len(values_list) == 1:
        single_flight = True
        values_list = [values_list[0][1]]
        flight_data_list = ['']
    else:
        single_flight = False
        values_list_temp = []
        for item in range(len(values_list)):
            values_list_temp.append(values_list[item][1])
            flight_data_list.append(values_list[item][0])
        values_list = values_list_temp
    return values_list, flight_data_list, single_flight, number_of_flights
