From e5185c2f258eb7641439485b503ce77486cc1c41 Mon Sep 17 00:00:00 2001 From: ccppi Date: Mon, 17 Jun 2024 11:03:50 +0200 Subject: [PATCH] fix typo in timeformat %M ->%m %D -> %d --- lib/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers.py b/lib/helpers.py index c2ca582..7e32428 100644 --- a/lib/helpers.py +++ b/lib/helpers.py @@ -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")