added support to calculate and store the ad expire date (#43)

This commit is contained in:
T.v.Dein
2024-01-19 14:41:47 +01:00
committed by Thomas von Dein
parent 1896209b96
commit 8771ec1108
3 changed files with 20 additions and 3 deletions

View File

@@ -117,6 +117,8 @@ func ScrapeAd(fetch *Fetcher, uri string) error {
return errors.New("could not extract ad data from page, got empty struct")
}
ad.CalculateExpire()
slog.Debug("extracted ad listing", "ad", ad)
// write listing