Skip to content

Commit 8d5604f

Browse files
author
Jonny Johannes
committed
payload out for a mo
1 parent 326fa91 commit 8d5604f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

adoption_sources/rescue_groups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def fetch_pets(self) -> Iterator[AdoptablePet]:
8383
# },
8484
}
8585
query_string = urlencode(query_url_params)
86-
url = f"{self.BASE_URL}/{self.species}?{query_string}"
86+
url = f"{self.BASE_URL}/{self.species}/?{query_string}"
8787
headers = {
8888
"Content-Type": "application/vnd.api+json",
8989
"Authorization": self._api_key,
@@ -93,7 +93,7 @@ def fetch_pets(self) -> Iterator[AdoptablePet]:
9393
f"Fetching {self.species} from RescueGroups within {self.radius_miles} miles of {self.postal_code}"
9494
)
9595

96-
response = requests.post(url, json=payload, headers=headers, timeout=30)
96+
response = requests.post(url, headers=headers, timeout=30)
9797
response.raise_for_status()
9898

9999
data = response.json().get("data", [])

0 commit comments

Comments
 (0)