Skip to content

Commit 021c8d4

Browse files
committed
Pagination fix
1 parent 3d56e04 commit 021c8d4

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

github3apps/github3apps.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def request(self, url, method='GET'):
5858
'Accept': 'application/vnd.github.machine-man-preview+json',
5959
'User-Agent': self.useragent
6060
}
61-
response = requestfunc('https://api.github.com/%s' % (url,), headers=headers)
61+
62+
request_url = url if url.startswith('https') else 'https://api.github.com/%s' % (url,)
63+
response = requestfunc(request_url, headers=headers)
6264
response.raise_for_status()
6365
retobj = response.json()
6466

setup.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,8 @@
44
from codecs import open
55
from os import path
66

7-
here = path.abspath(path.dirname(__file__))
87

9-
try:
10-
import pypandoc
11-
long_description = pypandoc.convert('README.md', 'rst')
12-
except(IOError, ImportError):
13-
long_description = open('README.md').read()
14-
15-
16-
version = '0.2.1'
8+
version = '0.2.2'
179
setup(
1810

1911
name='github3apps.py',
@@ -22,7 +14,8 @@
2214
packages=find_packages(),
2315

2416
description='Access the Github API as an Application',
25-
long_description=long_description,
17+
long_description=open('README.md').read(),
18+
long_description_content_type='text/markdown',
2619
python_requires='>=3',
2720

2821
author='Robert Hafner',

0 commit comments

Comments
 (0)