aboutsummaryrefslogtreecommitdiff
path: root/kennel/kennelcats.py
diff options
context:
space:
mode:
Diffstat (limited to 'kennel/kennelcats.py')
-rw-r--r--kennel/kennelcats.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kennel/kennelcats.py b/kennel/kennelcats.py
index 970e44f..2cb2f29 100644
--- a/kennel/kennelcats.py
+++ b/kennel/kennelcats.py
@@ -37,10 +37,10 @@ class KennelCat:
class KennelCatService:
- def __init__(self, endpoint: str):
- self.endpoint = endpoint
+ def __init__(self, hc_endpoint: str):
+ self.hc_endpoint = hc_endpoint
def get_kennel(self) -> List[KennelCat]:
- response = requests.get(f"{self.endpoint}/kennel")
+ response = requests.get(f"{self.hc_endpoint}/kennel")
response.raise_for_status()
return [KennelCat.from_dict(cat) for cat in response.json()]