Skip to content

Commit 0f52056

Browse files
author
Jonny Johannes
committed
with filterRadius
1 parent 52d9c50 commit 0f52056

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/rescue_groups_api_patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: pip install --break-system-packages -r requirements.txt
2222

23-
- name: Post to Bluesky
23+
- name: Debug the Rescue Group API
2424
env:
2525
ACCESS_KEY: ${{ secrets.CUTEPETSBOSTON_RESCUEGROUPS_API_KEY }}
2626
CUTEPETSBOSTON_RESCUEGROUPS_API_KEY: ${{ secrets.CUTEPETSBOSTON_RESCUEGROUPS_API_KEY }}

adoption_sources/rescue_groups.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ def fetch_pets(self) -> Iterator[AdoptablePet]:
7777
# "criteria": "Available",
7878
# }
7979
# ],
80-
# "filterRadius": {
81-
# "miles": self.radius_miles,
82-
# "postalcode": self.postal_code,
83-
# },
80+
"filterRadius": {
81+
"miles": self.radius_miles,
82+
"postalcode": self.postal_code,
83+
},
8484
}
8585
query_string = urlencode(query_url_params)
8686
url = f"{self.BASE_URL}/{self.species}/?{query_string}"

0 commit comments

Comments
 (0)