Ejemplo n.º 1
0
def search_favorites_event(search):
    user_id = flask_session['indico_user']
    events = event_logic.search_event(search, True, int(request.args.get('page', 1)))
    return Response(json.dumps(my_favorites.get_favorites_events(events, user_id)), mimetype='application/json')
Ejemplo n.º 2
0
def search_event(search):
    events = event.search_event(search, int(request.args.get('page', 1)))
    if flask_session.get("indico_user", ""):
        favorites.get_favorites_events(events, flask_session["indico_user"])
    return Response(json.dumps(events), mimetype='application/json')
Ejemplo n.º 3
0
def search_event(search):
    events = event.search_event(search, int(request.args.get('page', 1)))
    if flask_session.get("indico_user", ""):
        favorites.get_favorites_events(events, flask_session["indico_user"])
    return Response(json.dumps(events), mimetype='application/json')
Ejemplo n.º 4
0
def search_event(search, everything=False):
    return Response(json.dumps(event.search_event(search, everything, int(request.args.get('page', 1)))), mimetype='application/json')