also added the type part of the detail content (original de: "Art")

This commit is contained in:
2025-02-06 12:26:02 +01:00
parent e18577b25a
commit b07694dd8a
7 changed files with 16 additions and 7 deletions

View File

@@ -128,7 +128,8 @@ func ScrapeAd(fetch *Fetcher, uri string) error {
for _, detail := range advertisement.Details {
if slices.Contains(CONDITIONS, detail) {
advertisement.Condition = detail
break
} else {
advertisement.Type = detail
}
}