Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Handle the numbers in the pagination a bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
natecavanaugh committed Oct 14, 2014
1 parent 1f34cf4 commit e54730b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-pull-request/git-pull-request.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,12 +842,12 @@ def command_update_users(filename, url = None, github_users = None, total_pages

items = github_json_request(url)

m = re.search('[?&]page=(\d)+', url)
m = re.search('[?&]page=(\d+)', url)

if m is not None and m.group(1) != '':
print "Doing another request for page: %s of %s" % (m.group(1), total_pages)
else:
print "There are %s users, this could take a few minutes..." % len(items)
print "There are more than %s users, this could take a few minutes..." % len(items)

user_api_url = get_api_url("users")

Expand Down

0 comments on commit e54730b

Please sign in to comment.