From d8d6d2cf20ae21a5486e460740467084fdad08f6 Mon Sep 17 00:00:00 2001 From: jieun Date: Tue, 4 Apr 2017 17:26:29 -0400 Subject: [PATCH] we don't really want to get all the posts. so limit it to just 3 for now --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 0d3945a..17a8682 100644 --- a/app/views.py +++ b/app/views.py @@ -82,7 +82,7 @@ def index(page=1): @app.route('/allposts', methods=['GET', 'POST']) def allposts(): form = PostForm() - posts = Post.query.all() + posts = Post.query.limit(3) return render_template('allposts.html', title='allposts', form=form,