mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
cleanup
This commit is contained in:
parent
e79c589b5d
commit
99c99f6923
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user