Exemple #1
0
def remove_blog():
    que = request.args
    blog_id = int(que['blog_id'])
    blogs.delBlog(blog_id)
    return render_template("dash.html",
                           LoggedUser=session['username'],
                           blogs=blogs.getBlogsList(session['username']))
Exemple #2
0
def search_blog():
    que = request.args
    searches = blogs.searchBlog(que["blog_title"])
    bloglist = blogs.getBlogsList(session['username'])
    return render_template("dash.html",
                           LoggedUser=session['username'],
                           blogs=bloglist,
                           searchlist=searches)
Exemple #3
0
def newBlog():
    que = request.args
    blogs.addBlog(session['username'], que['blogName'])
    return render_template("dash.html",
                           LoggedUser=session['username'],
                           blogs=blogs.getBlogsList(session['username']))
Exemple #4
0
def homepage():
    que = request.args
    return render_template("dash.html",
                           LoggedUser=session['username'],
                           blogs=blogs.getBlogsList(session['username']))