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']))
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)
def newBlog(): que = request.args blogs.addBlog(session['username'], que['blogName']) return render_template("dash.html", LoggedUser=session['username'], blogs=blogs.getBlogsList(session['username']))
def homepage(): que = request.args return render_template("dash.html", LoggedUser=session['username'], blogs=blogs.getBlogsList(session['username']))