Exemple #1
0
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
Exemple #2
0
def eventRoute():
    result = News.getevents()
    return jsonify(result)
Exemple #3
0
def newsRoute():
    result = News.getnews()
    return jsonify(result)
Exemple #4
0
def noticesRoute():
    result = News.getNotices()
    return jsonify(result)
Exemple #5
0
def busRoute():
    result = News.getBusSchedule()
    return jsonify(result)
Exemple #6
0
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)