Spaces:
Running
Running
sdacelo commited on
Commit ·
44ab821
1
Parent(s): f553204
update customer id
Browse files48 unmodified lines4950515253545548 unmodified linesdef get_customers():return efd.customers@app.get("/customer_id/{customer_id}", response_model=str)def get_customer_by_id(customer_id: str):customer = next((c for c in efd.customers if c["customer_id"] == customer_id), None)48 unmodified lines4950515253545548 unmodified linesdef get_customers():return efd.customers@app.get("/customer_id/{customer_id}", response_model=Customer)def get_customer_by_id(customer_id: str):customer = next((c for c in efd.customers if c["customer_id"] == customer_id), None)
app.py+1-1