def getEventsAllByFlight(flight_id): flight = service.getFlightById(flight_id) events = service.getEventsByFlight(flight.id) return events
def getFlightById(flight_id): flight = service.getFlightById(flight_id) return flight
def getParametersAllByFlight(flight_id): flight = service.getFlightById(flight_id) parameters = service.getParametersWithValuesByFlight(flight.id) return parameters