Hi, i am trying to limit the number of results returned on a query to
10, but i seem to be getting all results back instead of just 10. Am
i missing something with the fetch syntax?
-----code-----
items = Item.all()
items.filter('adminOnly = ', False)
items.filter('status = ', 2)
items.order('-wins')
items.fetch(limit=10)
template_values = {
'userInfo': userInfo,
'appDetails': appConfig.details,
'items': items,
'links': links,
}
-----/code----
when i iterate through the results via django in the template it
appears the query is properly applying the filters, and the order, but
is returning all results that meet that criteria instead of just the
first 10.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---