mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
9a341cd793
commit
3ceb900e69
3
posts.py
3
posts.py
|
@ -2926,10 +2926,13 @@ def createBoxIndexed(recentPostsCache: {},
|
|||
arrivalDate = \
|
||||
locateNewsArrival(baseDir, domain, postFilename)
|
||||
if arrivalDate:
|
||||
print('Arrival: ' + str(arrivalDate))
|
||||
# how long has elapsed since this post arrived?
|
||||
currDate = datetime.datetime.utcnow()
|
||||
timeDiffMins = \
|
||||
int((currDate - arrivalDate).total_seconds() / 60)
|
||||
print('Arrival: mins ' + \
|
||||
str(timeDiffMins) + ' ' + str(votingTimeMins))
|
||||
# has the voting time elapsed?
|
||||
if timeDiffMins > votingTimeMins:
|
||||
# if there a votes file for this post?
|
||||
|
|
Loading…
Reference in New Issue