CHANGE Save created_on date as string to ad yaml

This commit is contained in:
Jeppy
2022-11-05 18:25:16 +01:00
committed by Sebastian Thomschke
parent 33594a2784
commit 5363fdb087

View File

@@ -804,7 +804,8 @@ class KleinanzeigenBot(SeleniumMixin):
# convert creation date to ISO format
created_parts = creation_date.split('.')
creation_date = created_parts[2] + '-' + created_parts[1] + '-' + created_parts[0] + ' 00:00:00'
info['created_on'] = datetime.fromisoformat(creation_date)
creation_date = datetime.fromisoformat(creation_date).isoformat()
info['created_on'] = creation_date
info['updated_on'] = None # will be set later on
return info