Skip to content

Commit

Permalink
Updated sources
Browse files Browse the repository at this point in the history
  • Loading branch information
product-team committed Sep 29, 2023
1 parent c9871b1 commit d23bb14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions groupdocs_viewer_cloud/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ def __init__(self, configuration, header_name=None, header_value=None,
self.configuration = configuration
self.pool = None
self.rest_client = rest.RESTClientObject(configuration)
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '23.7'}
self.default_headers = {'x-groupdocs-client': 'python sdk', 'x-groupdocs-version': '23.10'}
if header_name is not None:
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'python sdk 23.7'
self.user_agent = 'python sdk 23.10'

def __del__(self):
if self.pool is not None:
Expand Down Expand Up @@ -535,7 +535,7 @@ def __deserialize_file(self, response):
filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?',
content_disposition).group(1)
filename = filename.replace('/', '_')
path = os.path.join(os.path.dirname(path), filename)
path = os.path.join(os.path.dirname(path), os.path.basename(filename))

with open(path, "wb") as f:
f.write(response.data)
Expand Down
4 changes: 2 additions & 2 deletions groupdocs_viewer_cloud/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,6 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 23.7\n"\
"SDK Package Version: 23.7".\
"Version of the API: 23.10\n"\
"SDK Package Version: 23.10".\
format(env=sys.platform, pyversion=sys.version)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "groupdocs-viewer-cloud"
VERSION = "23.7"
VERSION = "23.10"

# Append current time to the version when publishing to test environment
if "--test" in sys.argv:
Expand Down

0 comments on commit d23bb14

Please sign in to comment.