Update cloudinary to 1.20.0

This commit is contained in:
JonnyWong16
2020-03-21 19:11:41 -07:00
parent 1c56d9c513
commit 2984629b39
27 changed files with 2865 additions and 923 deletions

View File

@@ -1,6 +1,7 @@
import json
from copy import deepcopy
from . import api
from cloudinary.api import call_json_api
class Search:
@@ -46,8 +47,8 @@ class Search:
def execute(self, **options):
"""Execute the search and return results."""
options["content_type"] = 'application/json'
uri = ['resources','search']
return api.call_json_api('post', uri, self.as_dict(), **options)
uri = ['resources', 'search']
return call_json_api('post', uri, self.as_dict(), **options)
def _add(self, name, value):
if name not in self.query:
@@ -56,4 +57,4 @@ class Search:
return self
def as_dict(self):
return deepcopy(self.query)
return deepcopy(self.query)