mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-05 04:02:21 +00:00
Be more generous with post recency
This commit is contained in:
1 parent
9caa658a5e
commit
79610c8bf8
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user