From 3ceb900e69373644f8d1270eb5f76cc07eb294f3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Oct 2020 13:27:20 +0100 Subject: [PATCH] Debug --- posts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posts.py b/posts.py index a23012e8..142ca2d4 100644 --- a/posts.py +++ b/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?