def index(): # if g.current_user: current_user = get_current_user() if current_user: event_queue = [] else: event_queue = [] return render_template('index.html', user=jsonify(current_user), event_queue=jsonify(event_queue))
def user(user_id): user_to_render = g.db.users.find_one({'_id': ObjectId(user_id)}) return render_template('index.html', user=jsonify(get_current_user()), user_to_render=jsonify(user_to_render))
def event(event_id): event_to_render = g.db.events.find_one({'_id': ObjectId(event_id)}) return render_template('index.html', user=jsonify(get_current_user()), event_to_render=jsonify(event_to_render))