fix(zopk): Use scrape_status instead of non-existent content_scraped
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

The SSE scrape stream was filtering on ZOPKNews.content_scraped which
doesn't exist in the model. The correct field is scrape_status with
values 'pending', 'failed', 'scraped', 'skipped'.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-02-09 15:27:06 +01:00
parent 841fe0df67
commit 4f5575dbcc

View File

@ -828,7 +828,7 @@ def admin_zopk_news_scrape_stream():
if not force:
query = query.filter(
ZOPKNews.content_scraped == False,
ZOPKNews.scrape_status.in_(['pending', 'failed']),
ZOPKNews.scrape_attempts < MAX_RETRY_ATTEMPTS
)