Add code for showing comment replies; show characters in stats page summaries for shipfic if no named ship
This commit is contained in:
parent
c10e39197c
commit
48534c366f
2 changed files with 30 additions and 2 deletions
|
@ -110,6 +110,10 @@ def commentpage(ficno,directory,local=False):
|
|||
except:
|
||||
pass
|
||||
filewrite.write("</h1>\n<p>" + comment["text"] + "</p>\n</div>\n")
|
||||
try:
|
||||
filewrite.write("<div class=\"comment reply\">\n<h1>Reply</h1>\n<p>" + comment["reply"] + "</p>\n</div>")
|
||||
except:
|
||||
pass
|
||||
except:
|
||||
pass
|
||||
if fffandom or timeelapsed.days < 730:
|
||||
|
|
28
statsgen.py
28
statsgen.py
|
@ -41,7 +41,19 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
|
|||
try:
|
||||
thechars = origfile.ship[0]
|
||||
except:
|
||||
pass
|
||||
chars = []
|
||||
try:
|
||||
chars.extend(origfile.charpov)
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
chars.extend(origfile.charmain)
|
||||
except:
|
||||
pass
|
||||
if chars != []:
|
||||
thechars = ", ".join(chars)
|
||||
else:
|
||||
thechars = ""
|
||||
else:
|
||||
chars = []
|
||||
try:
|
||||
|
@ -64,7 +76,19 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
|
|||
try:
|
||||
thechars = fileread.ship[0]
|
||||
except:
|
||||
pass
|
||||
chars = []
|
||||
try:
|
||||
chars.extend(fileread.charpov)
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
chars.extend(fileread.charmain)
|
||||
except:
|
||||
pass
|
||||
if chars != []:
|
||||
thechars = ", ".join(chars)
|
||||
else:
|
||||
thechars = ""
|
||||
else:
|
||||
chars = []
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue