Example #1
0
def user_profile(username=''):
    if utils.checksession(session):
      user = session['username']
    else:
       user = None
    posts = utils.finduserposts(username)
    return render_template("profile.html", username=username, user=user, posts=posts)
Example #2
0
def user_profile(username=''):
    if len(session.keys())!=0:
        user=session[session.keys()[0]]
    else:
        user=''
    posts = utils.finduserposts(username)
    return render_template("profile.html", username=username, user=user, posts=posts)