feat(summary): send complete articles within user budget (#39)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user