mirror of https://gitlab.com/bashrc2/epicyon
Voting logic
parent
9a7a6db47b
commit
53ed0774e6
5
posts.py
5
posts.py
|
@ -2935,7 +2935,10 @@ def createBoxIndexed(recentPostsCache: {},
|
||||||
print('Arrival: mins ' + \
|
print('Arrival: mins ' + \
|
||||||
str(timeDiffMins) + ' ' + str(votingTimeMins))
|
str(timeDiffMins) + ' ' + str(votingTimeMins))
|
||||||
# has the voting time elapsed?
|
# 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?
|
# if there a votes file for this post?
|
||||||
votesFilename = \
|
votesFilename = \
|
||||||
locateNewsVotes(baseDir, domain, postFilename)
|
locateNewsVotes(baseDir, domain, postFilename)
|
||||||
|
|
Loading…
Reference in New Issue