diff --git a/.gitignore b/.gitignore index 7ed44ae..e008300 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ flask_session +.idea diff --git a/README.md b/README.md index 1b21dfd..dc9ad9e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ HacktoberfestProgress ===================== -Check your progress on [Hacktoberfest](https://hacktoberfest.digitalocean.com/) 2017 +Check your progress on [Hacktoberfest](https://hacktoberfest.digitalocean.com/) ![@leereilly's Hacktoberfest contributions as of 1475644816](https://cloud.githubusercontent.com/assets/121322/19101908/aebbdb62-8a80-11e6-8321-72fcc1dd5eb6.png) ## Installation diff --git a/main.py b/main.py index 2c544ed..9cc3a42 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +import datetime from collections import namedtuple import requests @@ -14,10 +15,10 @@ api_base = 'https://api.github.com' -auth_url = 'https://github.com/login/oauth/authorize'\ - '?client_id={}'.format(client_id) +auth_url = 'https://github.com/login/oauth/authorize' \ + '?client_id={}'.format(client_id) -time_range = '2018-10-01T00:00:01Z..2018-10-31T23:59:59' +time_range = '{year}-10-01T00:00:01Z..{year}-10-31T23:59:59'.format(year=datetime.datetime.now().year) search_query = 'type:pr+created:' + time_range + '+author:{}' PullRequest = namedtuple('PullRequest', [