feat(news): restrict research to local sources and process frozen batches
Development CI / check-and-build (push) Successful in 3m23s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Successful in 5s

This commit is contained in:
eezd committed 2026-11-05 20:43:31 +08:00
1 parent d79a10c2e6
commit 89da4df785
28 files changed
+360 -409

No files matched your search

+3 -2
View File
@@ -20,7 +20,7 @@ from alphapulse.news_research.models import (
Version,
Reference,
)
from alphapulse.news_research import service, vocabulary as vocab
from alphapulse.news_research import service, batches, vocabulary as vocab
from alphapulse.news_research.models import VocabularyVersion
from alphapulse.news_research.contracts import (
INDEX_SKILL,
@@ -113,7 +113,8 @@ async def settings_row(session):
async def settings(session: DB):
row = await settings_row(session)
return success(
{"config": row.config, "enabled": row.enabled, "start_at": row.start_at}
{"config": row.config, "enabled": row.enabled, "start_at": row.start_at,
"batch": await batches.progress(session)}
)