Ejemplo n.º 1
0
def posts_for_directs():
    posts = Post.find_message_by_type(current_user.email, 'directs')
    message = "There is no posts for directs."
    return render_template("post/public_posts.html",
                           posts=posts,
                           title='Posts for directs',
                           msg=message)
Ejemplo n.º 2
0
def posts_from_uplines():
    posts = Post.find_message_by_type(current_user.email, 'subsets')
    message = "There is no posts from uplines."
    return render_template("post/public_posts.html",
                           posts=posts,
                           title='Posts from uplines',
                           msg=message)