feat(summary): send complete articles within user budget (#39)

This commit is contained in:
2026-11-24 17:39:26 +01:00
parent d0c7cb7cae
commit 79953ce49f
73 changed files with 1688 additions and 288 deletions

View File

@ -16,7 +16,7 @@ type ticket14Feed struct{ calls int }
func (*ticket14Feed) Name() string { return "fake-yahoo" }
func (f *ticket14Feed) Scrape(_ context.Context, _ []string) ([]scraper.Article, error) {
f.calls++
return []scraper.Article{{Title: "Market title A", Content: "Market body A", URL: "https://fake.invalid/a"}, {Title: "Market title B", Content: "Market body B", URL: "https://fake.invalid/b"}}, nil
return []scraper.Article{{Title: "Market title A", ContentState: scraper.ContentComplete, Content: "Market body A", URL: "https://fake.invalid/a"}, {Title: "Market title B", ContentState: scraper.ContentComplete, Content: "Market body B", URL: "https://fake.invalid/b"}}, nil
}
type ticket14Repository struct {