def read():
    data = DataAccess.fetch_all('select * from filght_brefing', [])
    return jsonify([pilot_brefing(*a) for a in data])
Beispiel #2
0
def read():
    data = DataAccess.fetch_all('select * from flight_attendent', [])
    return jsonify([flight_attendent(*a) for a in data])
Beispiel #3
0
def read():
    data = DataAccess.fetch_all('select * from dispatcher', [])
    return jsonify([dispather(*a) for a in data])
Beispiel #4
0
def read():
    data = DataAccess.fetch_all('select * from route', [])
    return jsonify([Route(*a) for a in data])
Beispiel #5
0
def read():
    data = DataAccess.fetch_all('select * from airplane', [])
    return jsonify([airplane(*a).serialize() for a in data])
Beispiel #6
0
def read():
    data = DataAccess.fetch_all('select * from medical', [])
    return jsonify([medical(*a) for a in data])
Beispiel #7
0
def read():
    data=DataAccess.fetch_all('select * from pilot',[])
    return jsonify([pilot(*a)  for a in data])
Beispiel #8
0
def read():
    data = DataAccess.fetch_all('select * from report', [])
    return jsonify([Report(*a) for a in data])
Beispiel #9
0
def read():
    data = DataAccess.fetch_all('select * from fa_flight', [])
    return jsonify([fa_flight(*a).serialize() for a in data])