Bump cloudinary from 1.34.0 to 1.39.1 (#2283)

* Bump cloudinary from 1.34.0 to 1.39.1

Bumps [cloudinary](https://github.com/cloudinary/pycloudinary) from 1.34.0 to 1.39.1.
- [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.34.0...1.39.1)

---
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.39.1

---------

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:
dependabot[bot] 2024-03-24 15:27:42 -07:00 committed by GitHub
parent 24fff60ed4
commit 6c6fa34ba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 349 additions and 110 deletions

View file

@ -3,8 +3,8 @@ import json
import cloudinary
from cloudinary.api_client.call_api import call_json_api
from cloudinary.utils import unique, unsigned_download_url_prefix, build_distribution_domain, base64url_encode, \
json_encode, compute_hex_hash, SIGNATURE_SHA256
from cloudinary.utils import (unique, build_distribution_domain, base64url_encode, json_encode, compute_hex_hash,
SIGNATURE_SHA256, build_array)
class Search(object):
@ -16,6 +16,7 @@ class Search(object):
'sort_by': lambda x: next(iter(x)),
'aggregate': None,
'with_field': None,
'fields': None,
}
_ttl = 300 # Used for search URLs
@ -57,6 +58,11 @@ class Search(object):
self._add("with_field", value)
return self
def fields(self, value):
"""Request which fields to return in the result set."""
self._add("fields", value)
return self
def ttl(self, ttl):
"""
Sets the time to live of the search URL.
@ -133,5 +139,5 @@ class Search(object):
def _add(self, name, value):
if name not in self.query:
self.query[name] = []
self.query[name].append(value)
self.query[name].extend(build_array(value))
return self