Do not store last_updated in the config file anymore

This commit is contained in:
Andrey Meshkov
2019-02-10 21:44:16 +03:00
parent 9a03190a62
commit 9ff420bb52
4 changed files with 40 additions and 10 deletions

1
app.go
View File

@@ -106,6 +106,7 @@ func run(args options) {
log.Printf("Couldn't load filter %d contents due to %s", filter.ID, err)
// clear LastUpdated so it gets fetched right away
}
if len(filter.Rules) == 0 {
filter.LastUpdated = time.Time{}
}