From 35578832509e7cd82fd2583a2ba72c7ec975c186 Mon Sep 17 00:00:00 2001 From: jkolthof <> Date: Wed, 2 Oct 2019 09:44:43 +0200 Subject: [PATCH 1/4] Added 2019 time-range / updated readme.md --- .gitignore | 2 +- .idea/.gitignore | 2 ++ .idea/HacktoberfestProgress.iml | 13 +++++++++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ README.md | 2 +- main.py | 7 ++++--- 8 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/HacktoberfestProgress.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index 7ed44ae..485dee6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -flask_session +.idea diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..5c98b42 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,2 @@ +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/HacktoberfestProgress.iml b/.idea/HacktoberfestProgress.iml new file mode 100644 index 0000000..102eedf --- /dev/null +++ b/.idea/HacktoberfestProgress.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..57afbbc --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..c553eda --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file 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..775e264 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', [ From 0c1e7b277ee303da3638fd772a7f977dfcd85709 Mon Sep 17 00:00:00 2001 From: jkolthof <> Date: Wed, 9 Oct 2019 17:17:26 +0200 Subject: [PATCH 2/4] Added 2019 time-range / updated readme.md --- .idea/.gitignore | 2 -- .idea/HacktoberfestProgress.iml | 13 ------------- .idea/misc.xml | 7 ------- .idea/modules.xml | 8 -------- .idea/vcs.xml | 6 ------ 5 files changed, 36 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/HacktoberfestProgress.iml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 5c98b42..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Default ignored files -/workspace.xml \ No newline at end of file diff --git a/.idea/HacktoberfestProgress.iml b/.idea/HacktoberfestProgress.iml deleted file mode 100644 index 102eedf..0000000 --- a/.idea/HacktoberfestProgress.iml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 57afbbc..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index c553eda..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file From b23fa18060862a0537dafeb817f1831f632b5eee Mon Sep 17 00:00:00 2001 From: jkolthof <> Date: Wed, 9 Oct 2019 17:35:31 +0200 Subject: [PATCH 3/4] Bug Fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 775e264..9cc3a42 100644 --- a/main.py +++ b/main.py @@ -18,7 +18,7 @@ auth_url = 'https://github.com/login/oauth/authorize' \ '?client_id={}'.format(client_id) -time_range = '{year}-10-01T00:00:01Z..{year}-10-31T23:59:59'..format(year=datetime.datetime.now().year) +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', [ From 73edc0760a42e44adc7dcd51637547c85ecc636e Mon Sep 17 00:00:00 2001 From: Excel1 Date: Wed, 16 Oct 2019 08:00:08 +0200 Subject: [PATCH 4/4] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 485dee6..e008300 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +flask_session .idea