added functionality to limit the maximum number of notices per day
This commit is contained in:
@@ -91,6 +91,7 @@ func InitTEDScraper(config Config, mongoManager *mongo.ConnectionManager, appLog
|
||||
CleanupAfter: config.TED.CleanupAfter,
|
||||
ScrapingInterval: config.TED.ScrapingInterval,
|
||||
AlertMail: config.AlertMail,
|
||||
MaxNoticesPerDay: config.TED.MaxNoticesPerDay,
|
||||
},
|
||||
appLogger,
|
||||
mongoManager,
|
||||
@@ -189,6 +190,7 @@ func RunOneTimeScraping(
|
||||
CleanupAfter: config.TED.CleanupAfter,
|
||||
ScrapingInterval: config.TED.ScrapingInterval,
|
||||
AlertMail: config.AlertMail,
|
||||
MaxNoticesPerDay: config.TED.MaxNoticesPerDay,
|
||||
}
|
||||
|
||||
// Initialize TED scraper
|
||||
|
||||
Reference in New Issue
Block a user