Fmt
This commit is contained in:
parent
479ef92236
commit
c38d654ac7
44 changed files with 2526 additions and 701 deletions
|
|
@ -24,7 +24,9 @@ def resolve_outcode_id(client: httpx.Client, outcode: str) -> str | None:
|
|||
if outcode in outcode_cache:
|
||||
return outcode_cache[outcode]
|
||||
|
||||
data = fetch_with_retry(client, TYPEAHEAD_URL, {"query": outcode, "limit": "10", "exclude": "STREET"})
|
||||
data = fetch_with_retry(
|
||||
client, TYPEAHEAD_URL, {"query": outcode, "limit": "10", "exclude": "STREET"}
|
||||
)
|
||||
if not data:
|
||||
return None
|
||||
|
||||
|
|
@ -61,7 +63,12 @@ def search_outcode(
|
|||
|
||||
data = fetch_with_retry(client, SEARCH_URL, params)
|
||||
if not data:
|
||||
log.warning("Failed to fetch index %d for %s/%s", index, outcode, channel_cfg["channel"])
|
||||
log.warning(
|
||||
"Failed to fetch index %d for %s/%s",
|
||||
index,
|
||||
outcode,
|
||||
channel_cfg["channel"],
|
||||
)
|
||||
break
|
||||
|
||||
raw_props = data.get("properties", [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue