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')
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')
def search_event(search, everything=False): return Response(json.dumps(event.search_event(search, everything, int(request.args.get('page', 1)))), mimetype='application/json')