This commit is contained in:
Nazar Kanaev 2020-08-01 16:30:04 +01:00
parent e79c589b5d
commit 99c99f6923
2 changed files with 3 additions and 2 deletions

View File

@ -67,8 +67,10 @@ func (h *Handler) startJobs() {
}
go h.db.DeleteOldItems()
go h.db.SyncSearch()
//h.fetchAllFeeds()
}
// fetch all feeds
func (h *Handler) fetchAllFeeds() {
for _, feed := range h.db.ListFeeds() {
h.fetchFeed(feed)
}

View File

@ -292,7 +292,6 @@ func (s *Storage) SyncSearch() {
for rows.Next() {
var item Item
rows.Scan(&item.Id, &item.Title, &item.Content, &item.Description)
fmt.Println(item)
items = append(items, item)
}