Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Expose accepts_appointments and accepts_walkins in API, refs #705
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 8, 2021
1 parent 1a79b1e commit 5c5f7eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vaccinate/api/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def location_json_queryset(queryset: QuerySet[Location]) -> QuerySet[Location]:
"vaccinefinder_location_id",
"vaccinespotter_location_id",
"vaccines_offered",
"accepts_appointments",
"accepts_walkins",
"zip_code",
"hours",
"hours_json",
Expand Down Expand Up @@ -179,6 +181,8 @@ def location_v0_json(location: Location) -> Dict[str, object]:
"hours": {"unstructured": location.hours, "structured": location.hours_json},
"website": location.website,
"vaccines_offered": location.vaccines_offered,
"accepts_appointments": location.accepts_appointments,
"accepts_walkins": location.accepts_walkins,
"concordances": [str(c) for c in location.concordances.all()],
"last_verified_by_vts": location.dn_latest_non_skip_report.created_at.isoformat()
if location.dn_latest_non_skip_report
Expand Down
2 changes: 2 additions & 0 deletions vaccinate/api/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def test_search_locations_format_v0preview(client, api_key, location):
"hours",
"website",
"vaccines_offered",
"accepts_appointments",
"accepts_walkins",
"concordances",
"last_verified_by_vts",
"vts_url",
Expand Down

0 comments on commit 5c5f7eb

Please sign in to comment.