mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 21:19:19 +00:00
fallback to updated date
This commit is contained in:
parent
8ec1370845
commit
aebe2cc040
@ -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…
x
Reference in New Issue
Block a user