Voting logic

merge-requests/30/head
Bob Mottram 2020-10-09 13:48:13 +01:00
parent 9a7a6db47b
commit 53ed0774e6
1 changed files with 25 additions and 22 deletions

View File

@ -2935,7 +2935,10 @@ def createBoxIndexed(recentPostsCache: {},
print('Arrival: mins ' + \
str(timeDiffMins) + ' ' + str(votingTimeMins))
# has the voting time elapsed?
if timeDiffMins > votingTimeMins:
if timeDiffMins < votingTimeMins:
# voting is still happening, so don't add this
# post to the timeline
continue
# if there a votes file for this post?
votesFilename = \
locateNewsVotes(baseDir, domain, postFilename)