Permalink
Browse files

Add pagination for repository listing, limited to 30 per page.

  • Loading branch information...
1 parent 0d4e33f commit 3f77ab19668c068105ac7dbaf1e6eb4a10e115a6 @jmhobbs jmhobbs committed Mar 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/github.py
View
@@ -312,9 +312,9 @@ def addKey(self, name, key):
class RepositoryEndpoint(BaseEndpoint):
- def forUser(self, username):
+ def forUser(self, username, page=1):
"""Get the repositories for the given user."""
- return self._parsed('repos/show/' + username)
+ return self._parsed('repos/show/' + username + "?page=" + str(page))
def branches(self, user, repo):
"""List the branches for a repo."""

0 comments on commit 3f77ab1

Please sign in to comment.