Skip to content

Commit 8e247e8

Browse files
authored
Update to v1.5.1; fix SDG error (#21)
1 parent 8951cda commit 8e247e8

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.5.1] - 2021-03-02
9+
10+
### Fixed
11+
12+
- Fixed an `AttributeError` that was thrown when Projects with Sustainable Development Goals were retrieved.
13+
814
## [1.5.0] - 2021-03-01
915

1016
### Changed

patch_api/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "1.5.0"
18+
__version__ = "1.5.1"
1919

2020
# import ApiClient
2121
from patch_api.api_client import ApiClient

patch_api/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = "OpenAPI-Generator/1.5.0/python"
94+
self.user_agent = "OpenAPI-Generator/1.5.1/python"
9595

9696
def __del__(self):
9797
if self._pool:

patch_api/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def to_debug_report(self):
341341
"OS: {env}\n"
342342
"Python Version: {pyversion}\n"
343343
"Version of the API: v1\n"
344-
"SDK Package Version: 1.5.0".format(env=sys.platform, pyversion=sys.version)
344+
"SDK Package Version: 1.5.1".format(env=sys.platform, pyversion=sys.version)
345345
)
346346

347347
def get_host_settings(self):

patch_api/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@
3232
from patch_api.models.project_list_response import ProjectListResponse
3333
from patch_api.models.project_response import ProjectResponse
3434
from patch_api.models.standard import Standard
35+
from patch_api.models.sdg import Sdg

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import setup, find_packages # noqa: H301
1313

1414
NAME = "patch-api"
15-
VERSION = "1.5.0"
15+
VERSION = "1.5.1"
1616
# To install the library, run the following
1717
#
1818
# python setup.py install

0 commit comments

Comments
 (0)