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:
content.append(result2.text.strip())
if not result:
if CLEANDATE or SWAPDATE:
today = datetime.today().strftime('%Y-%M-%D')
if item.tag_content == "pubdate":
today = datetime.today().strftime('%Y-%m-%d')
content.append(today)
else:
content.append("NOTFound")