def find_beers_cheaper_than(): body = json.loads(request.data) max_price = body['maxPrice'] return jsonify(database.filter_beers(max_price))
def find_beers_cheaper_than(): #takes in string and converts to python object body = json.loads(request.data) max_price = body['maxPrice'] return jsonify(database.filter_beers(max_price))