def api(): stop = request.args.get('stop', 1, type=int) schedule = getSchedule.parseSchedule(getSchedule.getRides(stop)) if schedule: response = jsonify(meta=dict(status=200, message='OK'), data=schedule) else: abort(400) return response
def api(): stop = request.args.get('stop', 1, type=int) schedule = getSchedule.parseSchedule(getSchedule.getRides(stop)) if schedule: response = jsonify(meta=dict(status=200, message='OK'),data=schedule) else: abort(400) return response
def mobileView(): stop = request.args.get('stop', 1, type=int) schedule = getSchedule.parseSchedule(getSchedule.getRides(stop)) if schedule: response = dict(meta=dict(status=200, message='OK'), data=schedule) else: abort(400) return render_template('m.html', path=response)
def mobileView(): stop = request.args.get('stop', 1, type=int) schedule = getSchedule.parseSchedule(getSchedule.getRides(stop)) if schedule: response = dict(meta=dict(status=200, message='OK'),data=schedule) else: abort(400) return render_template('m.html', path=response)