forked from indymedia/epicyon
Debug
parent
9a341cd793
commit
3ceb900e69
3
posts.py
3
posts.py
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue