def get_car_list(): all_cars = repository.get_car_list(request.args) total = len(repository.get_cars()) result = cars_schema.dump(all_cars) return jsonify({'total': total, 'rows': result})
def get_cars(): all_cars = repository.get_cars() result = cars_schema.dump(all_cars) return jsonify(result)
def mobile(): cars = repository.get_cars() return render_template("mobile.html", cars=cars)