aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar neptune 2022-12-17 04:53:20 -0300
committerLibravatar Choom 2022-12-17 05:51:28 -0300
commit8f22787c5bb5fdd45c5f6c822c0a4ef95a3a31b0 (patch)
tree64e565beff62b08204e0be5586a0f18a8403fb3e /cgi
parent1edc1246708c2df386bcbee416af52fedad1c198 (diff)
downloadweabot-8f22787c5bb5fdd45c5f6c822c0a4ef95a3a31b0.tar.gz
weabot-8f22787c5bb5fdd45c5f6c822c0a4ef95a3a31b0.tar.xz
weabot-8f22787c5bb5fdd45c5f6c822c0a4ef95a3a31b0.zip
Debug
Diffstat (limited to 'cgi')
-rw-r--r--cgi/post.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/post.py b/cgi/post.py
index 741bebb..264f207 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -748,11 +748,11 @@ def deletePost(postid, password, deltype=0, imageonly=False, quick=False):
(newlast["timestamp"], threadNumReplies(post["parentid"]), post["parentid"], board["id"]))
if not post['parentid']:
- logging.info("Unlinking html")
if board['board_type'] == 1:
fname = Settings.ROOT_DIR + str(board["dir"]) + "/res/" + str(post["timestamp"]) + ".html"
else:
fname = Settings.ROOT_DIR + str(board["dir"]) + "/res/" + str(post["id"]) + ".html"
+ logging.info("Unlinking html " + fname)
try:
os.unlink(fname)