示例#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
示例#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
示例#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)
示例#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)