app.py
def station():
    # Create our session (link) from Python to the DB
    session = Session(engine)

    """Return a list of all stations"""
    # Query all stations
    results = session.query(base.stations).all()

    session.close()

    return jsonify(results)
Return a list of all stations
Return a list of all stations
Return a list of all stations
def station():
    session = Session(engine)
    results = session.query(base.stations).all()
    session.close()
    return jsonify(results)
def station ( ) : session = Session ( engine ) results = session . query ( base . stations ) . all ( ) session . close ( ) return jsonify ( results )
Return a list of all stations
Return a list of all stations
# Create our session (link) from Python to the DB """Return a list of all stations""" # Query all stations