From 644bd369e4a252bb4a84288f978965492831ffc1 Mon Sep 17 00:00:00 2001 From: Bugmaschine <38097264+bugmaschine@users.noreply.github.com> Date: Sun, 22 Jan 2023 19:53:21 +0000 Subject: [PATCH] Did some testing, Should work --- fanficfare/adapters/adapter_deviantartcom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fanficfare/adapters/adapter_deviantartcom.py b/fanficfare/adapters/adapter_deviantartcom.py index e58d0b15..c736f69c 100644 --- a/fanficfare/adapters/adapter_deviantartcom.py +++ b/fanficfare/adapters/adapter_deviantartcom.py @@ -117,7 +117,7 @@ class DeviantArtComSiteAdapter(BaseSiteAdapter): def extractDateFromString(self, data): if ("just now" in data): - #Make it to text so we can pass it along + # Make it to text so we can pass it along return datetime.now().strftime("%b %d, %Y") timeNames = ["days", "day", "hours", "hour", "min", "mins", "Yesterday"] @@ -134,7 +134,7 @@ class DeviantArtComSiteAdapter(BaseSiteAdapter): if ("hours" in timeType or "hour" in timeType): pubdate = datetime.now() - timedelta(hours=float(timeAgo)) - elif ("mins" in timeType or "min" in timeType): + elif ("mins" in timeType or "min" in timeType): pubdate = datetime.now() - timedelta(minutes=float(timeAgo)) elif ("days" in timeType or "day" in timeType): pubdate = datetime.now() - timedelta(days=float(timeAgo))