Skip to content

Commit

Permalink
Adding back a hidden endpoint which I was unaware of...
Browse files Browse the repository at this point in the history
  • Loading branch information
iDutchy committed Sep 5, 2020
1 parent 4d347c5 commit f1235e9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 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.5 - September 6, 2020
* Added `spin` back because apparently SRA didnt document it.

### v1.0.4 - September 6, 2020
* Fixed type where you couldn't use the `greyscale` filter
* Removed `spin` from filter method, unsure how it even got there
Expand Down
2 changes: 1 addition & 1 deletion DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Get the definition from a word.

### *await* client.filter(option, url)
---
**Available options:** `gay`, `wasted`, `greyscale`, `invert`, `triggered`, `blur`, `blurple`, `glass`, `pixelate`, `sepia`, `invertgreyscale`, `brightness`, `threshold`, `red`, `green`, `blue`
**Available options:** `gay`, `wasted`, `greyscale`, `invert`, `triggered`, `blur`, `blurple`, `glass`, `pixelate`, `sepia`, `invertgreyscale`, `brightness`, `threshold`, `red`, `green`, `blue`, `spin`

**Parameters:**\
**- option** *(string)*: The type of image manipulation you want to use.\
Expand Down
Binary file removed dist/sr_api-1.0.4.tar.gz
Binary file not shown.
Binary file added dist/sr_api-1.0.5.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 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.4',
version = '1.0.5',
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.4.tar.gz',
download_url = 'https://github.com/iDutchy/sr_api/archive/1.0.5.tar.gz',
keywords = ['wrapper', 'api', 'random'],
install_requires=['aiohttp'],
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion sr_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def get_joke(self):
async def filter(self, option, url):
options = (
'greyscale', 'invert', 'invertgreyscale', 'brightness', 'threshold', 'sepia', 'red', 'green', 'blue', 'blurple',
'pixelate', 'blur', 'gay', 'glass', 'wasted', 'triggered')
'pixelate', 'blur', 'gay', 'glass', 'wasted', 'triggered', 'spin')

if option.lower() not in options and option is not None:
raise InputError(option.lower() + " is not a valid option!")
Expand Down

0 comments on commit f1235e9

Please sign in to comment.