fix comparision between countr tokens and country restriction

This commit is contained in:
Sarah Hoffmann
2025-12-04 18:28:04 +01:00
parent 6c8869439f
commit ffd5c32f17
2 changed files with 34 additions and 14 deletions

View File

@@ -413,7 +413,7 @@ class SearchBuilder:
"""
tokens = self.query.get_tokens(trange, qmod.TOKEN_COUNTRY)
if self.details.countries:
tokens = [t for t in tokens if t.lookup_word in self.details.countries]
tokens = [t for t in tokens if t.get_country() in self.details.countries]
return tokens