From 4ac3ab5e5b7208dcfa0ad47cd382cd0b9a708a5f Mon Sep 17 00:00:00 2001 From: Keith Herrington Date: Wed, 11 Dec 2024 11:49:57 -0800 Subject: [PATCH] Update hostex_api.py Fixes #1. upped the reservation api call to the max, from 20 results to 100 (what happens if I have more than 100 reservations though??) --- hostex_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostex_api.py b/hostex_api.py index ab4b6af..67cbeae 100644 --- a/hostex_api.py +++ b/hostex_api.py @@ -8,7 +8,7 @@ class HostexManager: self.logger = logging.getLogger(__name__) def fetch_reservations(self): - url = f"{self.api_url}/reservations" + url = f"{self.api_url}/reservations?limit=100" headers = { "Authorization": f"Bearer {self.api_key}", "Content-Type": "application/json"