mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
fix: dimension92 may not be defined in universalAnalyticsOpts (#555)
This commit is contained in:
@@ -287,8 +287,8 @@ class AdExtractor(WebScrapingMixin):
|
||||
# append subcategory and change e.g. category "161/172" to "161/172/lautsprecher_kopfhoerer"
|
||||
# take subcategory from dimension92 as key 'art_s' sometimes is a special attribute (e.g. gender for clothes)
|
||||
# the subcategory isn't really necessary, but when set, the appropriate special attribute gets preselected
|
||||
if belen_conf["universalAnalyticsOpts"]["dimensions"]["dimension92"]:
|
||||
info["category"] += f"/{belen_conf['universalAnalyticsOpts']['dimensions']['dimension92']}"
|
||||
if dimension92 := belen_conf["universalAnalyticsOpts"]["dimensions"].get("dimension92"):
|
||||
info["category"] += f"/{dimension92}"
|
||||
|
||||
info["title"] = title
|
||||
|
||||
|
||||
Reference in New Issue
Block a user