Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 committed Dec 8, 2023
1 parent 9f2e8bd commit 739d583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion connector_ebisumart/components/ebisumart_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _generate_api_url(self, endpoint, params=None):
"""Generate the complete API URL using the given endpoint and params."""
backend = self._get_backend()
url = (
f"{backend.ebisumart_api_url}/{backend.ebisumart_number}"
f"{backend.ebisumart_api_url}"
f"/dataaccess{endpoint}.json"
)
return url
Expand Down
4 changes: 2 additions & 2 deletions connector_ebisumart/models/ebisumart_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_token(self, auth_code):
"""Retrieve token"""
# Define the API Endpoint
oauth_url = (
f"{self.ebisumart_access_url}/{self.ebisumart_number}"
f"{self.ebisumart_access_url}"
f"/app_oauth/access_token.html"
)

Expand Down Expand Up @@ -105,7 +105,7 @@ def refresh_oauth_token(self):
# Check if the token is expired
backend = self.env['ebisumart.backend'].sudo().search([])[0]
oauth_url = (
f"{backend.ebisumart_access_url}/{backend.ebisumart_number}"
f"{backend.ebisumart_access_url}"
f"/app_oauth/access_token.html"
)

Expand Down

0 comments on commit 739d583

Please sign in to comment.