mirror of https://gitlab.com/bashrc2/epicyon
Be more generous with post recency
parent
9caa658a5e
commit
79610c8bf8
|
@ -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:
|
||||
|
|
2
utils.py
2
utils.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue