Commits

Anonymous committed 700049d

syntax fix

Comments (0)

Files changed (1)

newsmeme/views/frontend.py

     if not keywords:
         return redirect(url_for("frontend.index"))
 
-    page_obj = Post.query.search(keywords).restricted(g.user).as_list().
+    page_obj = Post.query.search(keywords).restricted(g.user).as_list().\
                           paginate(page, per_page=Post.PER_PAGE)
 
     if page_obj.total == 1: