Skip to content

Commit

Permalink
Merge pull request #214 from KerkhoffTechnologies/3383-fix-djautotask…
Browse files Browse the repository at this point in the history
…-reference-to-rest_api_version

Fix bug in rest_api_version
  • Loading branch information
kti-matt authored Feb 5, 2024
2 parents 62cbc6f + bca4ae3 commit 23e2ff7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.envrc
*.swp
*.sqlite

Expand Down
2 changes: 1 addition & 1 deletion djautotask/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
VERSION = (1, 5, 2, 'final')
VERSION = (1, 5, 3, 'final')

# pragma: no cover
if VERSION[-1] != "final":
Expand Down
11 changes: 5 additions & 6 deletions djautotask/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,11 @@ def __init__(
if not password:
password = settings.AUTOTASK_CREDENTIALS['password']
if not integration_code:
integration_code = settings.AUTOTASK_CREDENTIALS[
'integration_code'
]
integration_code = \
settings.AUTOTASK_CREDENTIALS['integration_code']
if not rest_api_version:
rest_api_version = settings.AUTOTASK_CREDENTIALS[
'rest_api_version']
rest_api_version = \
settings.AUTOTASK_CREDENTIALS['rest_api_version']
if not server_url:
server_url = get_api_connection_url()

Expand All @@ -321,7 +320,7 @@ def __init__(
def api_base_url(self):
return '{0}v{1}/'.format(
self.server_url,
settings.AUTOTASK_CREDENTIALS['rest_api_version'],
self.rest_api_version,
)

def get_api_url(self, endpoint=None):
Expand Down

0 comments on commit 23e2ff7

Please sign in to comment.