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??)
main
Keith Herrington 2024-12-11 11:49:57 -08:00 committed by GitHub
parent f6ff47e47b
commit 4ac3ab5e5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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"