From 1cb030aab71d8515edadd129eb510a70a7c00f0c Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Wed, 8 Apr 2026 07:50:44 +0200 Subject: [PATCH] Fix NameError in PortalaAdapter card parser _parse_hit_list_cards referenced an undefined `doctype` instead of `doctype_full` on the query-filter path. The surrounding try/except in search() swallowed the exception, so Berlin queries silently returned 0 hits whenever a search term was given. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/parlamente.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/parlamente.py b/app/parlamente.py index 9cccda0..f46dcf9 100644 --- a/app/parlamente.py +++ b/app/parlamente.py @@ -698,7 +698,7 @@ class PortalaAdapter(ParlamentAdapter): ) if query_filter: - hay = f"{title} {doctype}".lower() + hay = f"{title} {doctype_full}".lower() if not all(t in hay for t in query_filter.lower().split()): continue