fix typo in timeformat %M ->%m %D -> %d

This commit is contained in:
ccppi 2024-06-17 11:03:50 +02:00
parent ac8c7251e8
commit e5185c2f25

View File

@ -95,8 +95,8 @@ def finder(results,item,**modes):
else: else:
content.append(result2.text.strip()) content.append(result2.text.strip())
if not result: if not result:
if CLEANDATE or SWAPDATE: if item.tag_content == "pubdate":
today = datetime.today().strftime('%Y-%M-%D') today = datetime.today().strftime('%Y-%m-%d')
content.append(today) content.append(today)
else: else:
content.append("NOTFound") content.append("NOTFound")