Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

limit the number of posts shown

  • Loading branch information...
commit c72e450b76d413a542aa1bef90c31fe525406863 1 parent 0ee6cdf
Jeff Lindsay authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  bin.py
  2. +1 1  index.yaml
2  bin.py
@@ -7,7 +7,7 @@
7 7 class BinHandler(webapp.RequestHandler):
8 8 def get(self):
9 9 bin = self._get_bin()
10   - posts = bin.post_set.order('-created')
  10 + posts = bin.post_set.order('-created').fetch(50)
11 11 request = self.request
12 12 self.response.out.write(template.render('templates/bin.html', {'bin':bin, 'posts':posts, 'request':request}))
13 13
2  index.yaml
@@ -16,7 +16,7 @@ indexes:
16 16 - name: bin
17 17 - name: created
18 18
19   -# Used once in query history.
  19 +# Used 4 times in query history.
20 20 - kind: Post
21 21 properties:
22 22 - name: bin

0 comments on commit c72e450

Please sign in to comment.
Something went wrong with that request. Please try again.