mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Fixes #9 UnboundLocalError: local variable 'last_updated_on'
This commit is contained in:
committed by
GitHub
parent
810faccd8c
commit
529c48f5d1
@@ -175,6 +175,8 @@ class KleinanzeigenBot(SeleniumMixin):
|
||||
last_updated_on = datetime.fromisoformat(ad_cfg["updated_on"])
|
||||
elif ad_cfg["created_on"]:
|
||||
last_updated_on = datetime.fromisoformat(ad_cfg["created_on"])
|
||||
else:
|
||||
last_updated_on = None
|
||||
|
||||
if last_updated_on:
|
||||
ad_age = datetime.utcnow() - last_updated_on
|
||||
|
||||
Reference in New Issue
Block a user