def dashboard(): if 'uuid' not in session: return redirect('/') context = { 'logged_in_user': User.get_one(session['uuid']) } return render_template('wall.html', messages = Message.get_all(),users = User.get_all(), **context, name = Message.join())
def show_user(id): user = User.get_one(id) print(user) return render_template("show_user_curd.html", user=user)
def edit_user_form(user_id): return render_template("usersedit.html", user = User.get_one({"id": user_id}))
def display_user(user_id): return render_template("usersread.html", user = User.get_one({"id": user_id}))
def edit_user(id): data = {"id": id} user = User.get_one(data) return render_template('edit.html', user=user)
def show_user(id): data = {"id": id} user = User.get_one(data) return render_template('show.html', user=user)