Prefix rss items with date for temporal loading
parent
c1cf329d57
commit
798d451103
|
|
@ -31,7 +31,7 @@ func (item *Item) String() string {
|
|||
}
|
||||
|
||||
func (item *Item) ID() string {
|
||||
return strings.Join(regexp.MustCompile("[a-zA-Z0-9]*").FindAllString(item.Link, -1), "_")
|
||||
return item.TS.UTC().Format("20060102_") + strings.Join(regexp.MustCompile("[a-zA-Z0-9]*").FindAllString(item.Link, -1), "_")
|
||||
}
|
||||
|
||||
func DeserializeItem(src []byte) (*Item, error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue