Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ole
2026-05-18 21:31:52 +00:00
parent 6eedfffa4d
commit c9383788de
22 changed files with 1614 additions and 42 deletions
+2 -6
View File
@@ -149,14 +149,10 @@ async def analyze_search(
if include_eiendom_no:
try:
matched_unit = await eiendom_no.search_unit_from_finn_url(card.url)
unit_code = matched_unit.unit_code if matched_unit else None
except Exception as exc:
logger.warning("Eiendom.no unit search failed: %s", exc)
matched_unit = None
unit_code = (
matched_unit.unit_code
if matched_unit
else eiendom_no.resolve_unit_from_finn_url(card.url)
)
unit_code = None
result = await analyze_ad(finn_ad, unit_code=unit_code)
if result.get("eiendom_unit"):
enriched_count += 1