This commit is contained in:
Nazar Kanaev
2020-10-20 20:54:05 +01:00
parent b766cb4ac5
commit 6a63d49823
7 changed files with 21 additions and 21 deletions

View File

@@ -8,8 +8,8 @@ type HTTPState struct {
FeedID int64
LastRefreshed time.Time
LastModified string
Etag string
LastModified string
Etag string
}
func (s *Storage) GetHTTPState(feedID int64) *HTTPState {

View File

@@ -356,7 +356,7 @@ func (s *Storage) DeleteOldItems() {
delete from items where feed_id = ? and status != ? and date_arrived < ?`,
feedId,
STARRED,
time.Now().Add(-time.Hour*24*90), // 90 days
time.Now().Add(-time.Hour*24*90), // 90 days
)
if err != nil {
s.log.Print(err)

View File

@@ -4,15 +4,15 @@ import "encoding/json"
func settingsDefaults() map[string]interface{} {
return map[string]interface{}{
"filter": "",
"feed": "",
"feed_list_width": 300,
"item_list_width": 300,
"filter": "",
"feed": "",
"feed_list_width": 300,
"item_list_width": 300,
"sort_newest_first": true,
"theme_name": "light",
"theme_font": "",
"theme_size": 1,
"refresh_rate": 0,
"theme_name": "light",
"theme_font": "",
"theme_size": 1,
"refresh_rate": 0,
}
}