feat: change variable name for base url

This commit is contained in:
Daniel Bauer
2025-06-30 12:07:09 +02:00
parent 23b5e66600
commit 2fdf4184de
3 changed files with 11 additions and 21 deletions

View File

@@ -102,7 +102,7 @@ class CordraClient:
CordraAuthenticationError: If authentication fails
CordraClientError: For other API errors
"""
url = f"{self.config.cordra_url}/objects/{object_id}"
url = f"{self.config.base_url}/objects/{object_id}"
params = {"full": "true"}
try:
@@ -143,7 +143,7 @@ class CordraClient:
CordraAuthenticationError: If authentication fails
CordraClientError: For other API errors
"""
url = f"{self.config.cordra_url}/search"
url = f"{self.config.base_url}/search"
params = {"query": query}
try: