Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

limit the number of posts shown

  • Loading branch information...
commit c72e450b76d413a542aa1bef90c31fe525406863 1 parent 0ee6cdf
Jeff Lindsay authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  bin.py
  2. +1 −1  index.yaml
2  bin.py
View
@@ -7,7 +7,7 @@
class BinHandler(webapp.RequestHandler):
def get(self):
bin = self._get_bin()
- posts = bin.post_set.order('-created')
+ posts = bin.post_set.order('-created').fetch(50)
request = self.request
self.response.out.write(template.render('templates/bin.html', {'bin':bin, 'posts':posts, 'request':request}))
2  index.yaml
View
@@ -16,7 +16,7 @@ indexes:
- name: bin
- name: created
-# Used once in query history.
+# Used 4 times in query history.
- kind: Post
properties:
- name: bin
Please sign in to comment.
Something went wrong with that request. Please try again.