This repository has been archived on 2026-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
kennels-server/views/location_requests.py
T

25 lines
384 B
Python

LOCATIONS = [
{
"id": 1,
"name": "Nashville North"
},
{
"id": 2,
"name": "Nashville South"
}
,
]
def get_all_locations():
return LOCATIONS
def get_single_location():
requested_location = None
for location in LOCATIONS:
if location["id"] == id:
requested_location = location
return requested_location