mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 18:41:50 +01:00
fix KeyError when creating new ads
This commit is contained in:
@@ -443,7 +443,7 @@ class KleinanzeigenBot(SeleniumMixin):
|
|||||||
self.web_await(EC.url_contains("p-anzeige-aufgeben-bestaetigung.html?adId="), 20)
|
self.web_await(EC.url_contains("p-anzeige-aufgeben-bestaetigung.html?adId="), 20)
|
||||||
|
|
||||||
ad_cfg_orig["updated_on"] = datetime.utcnow().isoformat()
|
ad_cfg_orig["updated_on"] = datetime.utcnow().isoformat()
|
||||||
if not ad_cfg_orig["created_on"] and not ad_cfg_orig["id"]:
|
if not ad_cfg["created_on"] and not ad_cfg["id"]:
|
||||||
ad_cfg_orig["created_on"] = ad_cfg_orig["updated_on"]
|
ad_cfg_orig["created_on"] = ad_cfg_orig["updated_on"]
|
||||||
|
|
||||||
# extract the ad id from the URL's query parameter
|
# extract the ad id from the URL's query parameter
|
||||||
|
|||||||
Reference in New Issue
Block a user