Be more generous with post recency

This commit is contained in:
bashrc committed 2021-03-05 16:48:28 +00:00
1 parent 9caa658a5e
commit 79610c8bf8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ def _validFeedDate(pubDate: str) -> bool:
# convert from YY-MM-DD HH:MM:SS+00:00 to
# YY-MM-DDTHH:MM:SSZ
postDate = pubDate.replace(' ', 'T').replace('+00:00', 'Z')
return validPostDate(postDate, 30)
return validPostDate(postDate, 90)
def parseFeedDate(pubDate: str) -> str:
+1 -1
View File
@@ -100,7 +100,7 @@ def hasUsersPath(pathStr: str) -> bool:
return False
def validPostDate(published: str, maxAgeDays=7) -> bool:
def validPostDate(published: str, maxAgeDays=90) -> bool:
"""Returns true if the published date is recent and is not in the future
"""
baselineTime = datetime.datetime(1970, 1, 1)