Skip to content

Commit f062002

Browse files
committed
Fix user agent reference
1 parent 4824288 commit f062002

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pyixapi/core/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
RoleAssignment,
3030
)
3131

32-
__version__ = "0.2.4"
32+
__version__ = "0.2.5"
3333

3434

3535
class API(object):

pyixapi/core/endpoint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def all(self):
2828
base=self.url,
2929
token=self.api.access_token,
3030
http_session=self.api.http_session,
31-
user_agent=self.user_agent,
31+
user_agent=self.api.user_agent,
3232
proxies=self.api.proxies,
3333
)
3434
return RecordSet(self, r)
@@ -43,7 +43,7 @@ def filter(self, *args, **kwargs):
4343
base=self.url,
4444
token=self.api.access_token,
4545
http_session=self.api.http_session,
46-
user_agent=self.user_agent,
46+
user_agent=self.api.user_agent,
4747
proxies=self.api.proxies,
4848
)
4949
return RecordSet(self, r)
@@ -78,7 +78,7 @@ def get(self, *args, **kwargs):
7878
base=self.url,
7979
token=self.api.access_token,
8080
http_session=self.api.http_session,
81-
user_agent=self.user_agent,
81+
user_agent=self.api.user_agent,
8282
proxies=self.api.proxies,
8383
)
8484
try:
@@ -100,7 +100,7 @@ def create(self, *args, **kwargs):
100100
base=self.url,
101101
token=self.api.access_token,
102102
http_session=self.api.http_session,
103-
user_agent=self.user_agent,
103+
user_agent=self.api.user_agent,
104104
proxies=self.api.proxies,
105105
).post(args[0] if args else kwargs)
106106

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyixapi"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
description = "Python API client library for IX-API"
55
authors = [{ name = "Guillaume Mazoyer", email = "oss@mazoyer.eu" }]
66
readme = "README.md"

0 commit comments

Comments
 (0)