fallback to updated date
This commit is contained in:
parent
8ec1370845
commit
aebe2cc040
1 changed files with 4 additions and 0 deletions
|
|
@ -71,7 +71,11 @@ func (s *Storage) CreateItems(items []Item) bool {
|
|||
return false
|
||||
}
|
||||
now := time.Now()
|
||||
|
||||
for _, item := range items {
|
||||
if item.Date == nil {
|
||||
item.Date = item.DateUpdated
|
||||
}
|
||||
_, err = tx.Exec(`
|
||||
insert into items (
|
||||
guid, feed_id, title, link, description,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue