clear html on each tos review iteration

This commit is contained in:
pluja 2024-02-20 15:02:15 +01:00
parent 9b674eafe3
commit 6b57f6153f

View File

@ -110,11 +110,9 @@ func trigerScraping() {
log.Error().Err(err).Msgf("Could not save ToS highlights from %v", service.TosUrls[0]) log.Error().Err(err).Msgf("Could not save ToS highlights from %v", service.TosUrls[0])
continue continue
} }
/*_, err = service.Update().SetTosReviews(&highlights).Save(context.Background())
service.Update().SetUpdatedAt(time.Now()).Save(context.Background())
service.Update().SetLastCheck(time.Now()).Save(context.Background())
utils.AddServiceUpdateActions(service, "Scraped the Terms of Service.")*/
// clear html
html = ""
// Sleep 1 second // Sleep 1 second
time.Sleep(1 * time.Second) time.Sleep(1 * time.Second)
} }