Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
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)