fix(calendar): exclude common words from company name auto-linking
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Company names like "Portal", "Joker", "Wakat" are also common Polish words and cause false positive matches in event descriptions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4bac3102d2
commit
f2caa4abcf
@ -173,8 +173,13 @@ def _enrich_event_description(db, html):
|
||||
).all()
|
||||
companies = sorted(companies, key=lambda c: len(c.name), reverse=True)
|
||||
|
||||
# Skip company names that are common Polish/English words — too many false positives
|
||||
_common_words = {'Portal', 'Joker', 'Wakat'}
|
||||
|
||||
company_map = {}
|
||||
for c in companies:
|
||||
if c.name in _common_words:
|
||||
continue
|
||||
company_map[c.name] = flask_url_for('public.company_detail_by_slug', slug=c.slug)
|
||||
|
||||
def enrich_text_node(text):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user