示例#1
0
def get_favorites_future_events():
    user_id = flask_session['indico_user']
    events = event_logic.get_future_events(int(request.args.get('page', 1)))
    return Response(json.dumps(my_favorites.get_favorites_events(events, user_id)), mimetype='application/json')
示例#2
0
def get_future_events():
    return Response(json.dumps(event.get_future_events(int(request.args.get('page', 1)))), mimetype='application/json')