Skip to content
Snippets Groups Projects

Feature/refactor device to router

Merged Karel van Klink requested to merge feature/refactor-device-to-router into develop
7 files
+ 48
16
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 18
0
from typing import Optional
def all_customers() -> list[dict]:
return [
{
"id": "8f0df561-ce9d-4d9c-89a8-7953d3ffc961",
"name": "Geant",
},
]
def get_customer_by_name(name: str) -> Optional[dict]:
for customer in all_customers():
if customer["name"] == name:
return customer
return None
Loading