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/customer_requests.py
T
2022-01-14 10:48:24 -06:00

59 lines
1.0 KiB
Python

CUSTOMERS = [
{
"id": 1,
"name": "Ryan Tanay",
"email": "ryan@tanay.com",
"employee": False
},
{
"id": 2,
"name": "Emma Beaton",
"email": "emma@beaton.com",
"employee": False
},
{
"id": 3,
"name": "Dani Adkins",
"email": "dani.adkins.com",
"employee": False
},
{
"id": 4,
"name": "Adam Oswalt",
"email": "adam@oswalt.com",
"employee": False
},
{
"id": 5,
"name": "Fletcher Bangs",
"email": "flangs@bangs.com",
"employee": False
},
{
"id": 6,
"name": "Angela Lee",
"email": "lee@lee.com",
"employee": False
},
{
"name": "mike mike",
"email": "m@m.com",
"employee": False,
"id": 7
},
]
def get_all_customers():
return CUSTOMERS
def get_single_customer():
requested_customer = None
for customer in CUSTOMERS:
if customer["id"] == id:
requested_customer = customer
return requested_customer