mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Bump cloudinary from 1.30.0 to 1.32.0 (#1996)
* Bump cloudinary from 1.30.0 to 1.32.0 Bumps [cloudinary](https://github.com/cloudinary/pycloudinary) from 1.30.0 to 1.32.0. - [Release notes](https://github.com/cloudinary/pycloudinary/releases) - [Changelog](https://github.com/cloudinary/pycloudinary/blob/master/CHANGELOG.md) - [Commits](https://github.com/cloudinary/pycloudinary/compare/1.30.0...1.32.0) --- updated-dependencies: - dependency-name: cloudinary dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update cloudinary==1.32.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
66fa93cfaf
commit
133c8a3363
8 changed files with 94 additions and 10 deletions
|
@ -4,7 +4,11 @@ from cloudinary.api_client.call_api import call_json_api
|
|||
from cloudinary.utils import unique
|
||||
|
||||
|
||||
class Search:
|
||||
class Search(object):
|
||||
ASSETS = 'resources'
|
||||
|
||||
_endpoint = ASSETS
|
||||
|
||||
_KEYS_WITH_UNIQUE_VALUES = {
|
||||
'sort_by': lambda x: next(iter(x)),
|
||||
'aggregate': None,
|
||||
|
@ -53,7 +57,7 @@ class Search:
|
|||
def execute(self, **options):
|
||||
"""Execute the search and return results."""
|
||||
options["content_type"] = 'application/json'
|
||||
uri = ['resources', 'search']
|
||||
uri = [self._endpoint, 'search']
|
||||
return call_json_api('post', uri, self.as_dict(), **options)
|
||||
|
||||
def _add(self, name, value):
|
||||
|
@ -72,3 +76,7 @@ class Search:
|
|||
to_return[key] = value
|
||||
|
||||
return to_return
|
||||
|
||||
def endpoint(self, endpoint):
|
||||
self._endpoint = endpoint
|
||||
return self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue