Skip to content

Commit

Permalink
No numero mysterioso
Browse files Browse the repository at this point in the history
  • Loading branch information
norm committed Apr 9, 2021
1 parent b42fdbf commit 45e1dde
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script/add_github_events
Expand Up @@ -10,7 +10,8 @@ from django.template.defaultfilters import pluralize


EVENTS_URL='https://api.github.com/users/norm/events'
page=0
MAX_PAGINATION=10 # this is not an endlessly paginating API

pp = pprint.PrettyPrinter().pprint


Expand All @@ -28,9 +29,9 @@ def compare_url(event):
)



day_events = {}
while page < 10:
page=0
while page < MAX_PAGINATION:
page += 1
req = requests.get(
'%s?page=%d' % (EVENTS_URL, page),
Expand Down

0 comments on commit 45e1dde

Please sign in to comment.