mirror of https://gitlab.com/bashrc2/epicyon
Avoid duplicated replies
parent
fbb7ed2a53
commit
7d6a47d967
4
blog.py
4
blog.py
|
@ -131,9 +131,11 @@ def getBlogReplies(baseDir: str, httpPrefix: str, translate: {},
|
||||||
continue
|
continue
|
||||||
with open(postFilename, "r") as postFile:
|
with open(postFilename, "r") as postFile:
|
||||||
repliesStr += postFile.read() + '\n'
|
repliesStr += postFile.read() + '\n'
|
||||||
repliesStr += getBlogReplies(baseDir, httpPrefix, translate,
|
rply = getBlogReplies(baseDir, httpPrefix, translate,
|
||||||
nickname, domain, domainFull,
|
nickname, domain, domainFull,
|
||||||
replyPostId, depth+1)
|
replyPostId, depth+1)
|
||||||
|
if rply not in repliesStr:
|
||||||
|
repliesStr += rply
|
||||||
|
|
||||||
# indicate the reply indentation level
|
# indicate the reply indentation level
|
||||||
indentStr = '>'
|
indentStr = '>'
|
||||||
|
|
Loading…
Reference in New Issue