mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
_fetch_plan() sends no API key query parameter 🟩
This commit is contained in:
parent
7752039dbd
commit
eb381a778c
1 changed files with 1 additions and 3 deletions
|
|
@ -23,8 +23,6 @@ class MagicPlanClient:
|
||||||
return self._fetch_plan(plan_id).content
|
return self._fetch_plan(plan_id).content
|
||||||
|
|
||||||
def _fetch_plan(self, plan_id: str) -> requests.Response:
|
def _fetch_plan(self, plan_id: str) -> requests.Response:
|
||||||
r = self._session.get(
|
r = self._session.get(f"{_BASE_URL}/plans/{plan_id}")
|
||||||
f"{_BASE_URL}/plans/{plan_id}", params={"key": self._api_key}
|
|
||||||
)
|
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
return r
|
return r
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue