we don't really want to get all the posts. so limit it to just 3 for now

This commit is contained in:
jieun 2017-04-04 17:26:29 -04:00
parent 99035ffe8c
commit d8d6d2cf20
1 changed files with 1 additions and 1 deletions

View File

@ -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,