main
Bob Mottram 2020-10-09 13:27:20 +01:00
parent 9a341cd793
commit 3ceb900e69
1 changed files with 3 additions and 0 deletions

View File

@ -2926,10 +2926,13 @@ def createBoxIndexed(recentPostsCache: {},
arrivalDate = \ arrivalDate = \
locateNewsArrival(baseDir, domain, postFilename) locateNewsArrival(baseDir, domain, postFilename)
if arrivalDate: if arrivalDate:
print('Arrival: ' + str(arrivalDate))
# how long has elapsed since this post arrived? # how long has elapsed since this post arrived?
currDate = datetime.datetime.utcnow() currDate = datetime.datetime.utcnow()
timeDiffMins = \ timeDiffMins = \
int((currDate - arrivalDate).total_seconds() / 60) int((currDate - arrivalDate).total_seconds() / 60)
print('Arrival: mins ' + \
str(timeDiffMins) + ' ' + str(votingTimeMins))
# has the voting time elapsed? # has the voting time elapsed?
if timeDiffMins > votingTimeMins: if timeDiffMins > votingTimeMins:
# if there a votes file for this post? # if there a votes file for this post?