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) <noreply@anthropic.com>
This commit is contained in:
parent
9e0f11f7c9
commit
1cb030aab7
@ -698,7 +698,7 @@ class PortalaAdapter(ParlamentAdapter):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if query_filter:
|
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()):
|
if not all(t in hay for t in query_filter.lower().split()):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user