Skip to content

Commit

Permalink
Sometimes I really hate myself...
Browse files Browse the repository at this point in the history
  • Loading branch information
iDutchy committed Sep 5, 2020
1 parent f1235e9 commit fa6f4d4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v1.0.6 - September 6, 2020
* `Client.filter()` now returns an `Image` object

### v1.0.5 - September 6, 2020
* Added `spin` back because apparently SRA didnt document it.

Expand Down
2 changes: 1 addition & 1 deletion DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Get the definition from a word.
**- option** *(string)*: The type of image manipulation you want to use.\
**- url** *(string)*: The url from the image you want to manipulate.

**Return type:** string (url)
**Return type:** [Image](https://github.com/iDutchy/sr_api/blob/master/DOCUMENTATION.md#image "Image object attributes") *(object)*

## *await* client.youtube_comment(avatar, username, comment)
---
Expand Down
Binary file removed dist/sr_api-1.0.5.tar.gz
Binary file not shown.
Binary file added dist/sr_api-1.0.6.tar.gz
Binary file not shown.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
setup(
name = 'sr_api',
packages = ['sr_api'],
version = '1.0.5',
version = '1.0.6',
license='MIT',
description = 'An async wrapper for some-random-api',
author = 'Niels Steenman',
author_email = '[email protected]',
url = 'https://github.com/iDutchy/sr_api',
download_url = 'https://github.com/iDutchy/sr_api/archive/1.0.5.tar.gz',
download_url = 'https://github.com/iDutchy/sr_api/archive/1.0.6.tar.gz',
keywords = ['wrapper', 'api', 'random'],
install_requires=['aiohttp'],
classifiers=[
Expand All @@ -23,4 +23,4 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
)
)
3 changes: 2 additions & 1 deletion sr_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ async def filter(self, option, url):
if option.lower() not in options and option is not None:
raise InputError(option.lower() + " is not a valid option!")

return self.srapi_url("canvas/" + str(option).lower() + "?avatar=" + url)
end_url = self.srapi_url("canvas/" + str(option).lower() + "?avatar=" + url)
return Image(self._http_client, end_url)

async def youtube_comment(self, avatar, username, comment):
url = self.srapi_url("canvas/youtube-comment" + "?avatar=" + avatar + "&username=" + username + "&comment=" + comment.replace(" ", "+"))
Expand Down

1 comment on commit fa6f4d4

@DJJ05
Copy link

@DJJ05 DJJ05 commented on fa6f4d4 Sep 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol I hate myself too 😔

Please sign in to comment.