Be more generous with post recency

main
Bob Mottram 2021-03-05 16:48:28 +00:00
parent 9caa658a5e
commit 79610c8bf8
2 changed files with 2 additions and 2 deletions

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:

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)