def tweets(): result = News.getTweets() if sys.version[0] == 3: return jsonify(result) else: response = app.response_class(response=str(result), status=200, mimetype='application/json') return response
def eventRoute(): result = News.getevents() return jsonify(result)
def newsRoute(): result = News.getnews() return jsonify(result)
def noticesRoute(): result = News.getNotices() return jsonify(result)
def busRoute(): result = News.getBusSchedule() return jsonify(result)
def timeTable(): roll = request.args.get('roll') subject = request.args.get('subject') day = request.args.get('day') result = News.getTimeTable(roll, subject, day) return jsonify(result)