From 123d3d7e2cb472a05b2fd3ade80eaeed9801145e Mon Sep 17 00:00:00 2001 From: iDutchy Date: Sat, 5 Sep 2020 15:52:32 +0000 Subject: [PATCH] messed up again --- setup.py | 4 ++-- sr_api/client.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 9d37361..94fc617 100644 --- a/setup.py +++ b/setup.py @@ -3,13 +3,13 @@ setup( name = 'sr_api', packages = ['sr_api'], - version = '1.0.1', + version = '1.0.2', license='MIT', description = 'An async wrapper for some-random-api', author = 'Niels Steenman', author_email = 'ngssteenman@gmail.com', url = 'https://github.com/iDutchy/sr_api', - download_url = 'https://github.com/iDutchy/sr_api/archive/1.0.1.tar.gz', + download_url = 'https://github.com/iDutchy/sr_api/archive/1.0.2.tar.gz', keywords = ['wrapper', 'api', 'random'], install_requires=['aiohttp'], classifiers=[ diff --git a/sr_api/client.py b/sr_api/client.py index 805d6ff..4386e73 100644 --- a/sr_api/client.py +++ b/sr_api/client.py @@ -25,7 +25,7 @@ def __init__(self, key=None): self.key = key def srapi_url(self, path): - return self.SR_API_BASE + path + (("&key=" + key) if key else "") + return self.SR_API_BASE + path + (("&key=" + self.key) if self.key else "") async def get_image(self, name=None): options = ("dog", "cat", "panda", "red_panda", "fox", "birb", "koala",