From 48c2355d0ac6e433769d0e3dfc5df33df405fb78 Mon Sep 17 00:00:00 2001 From: Terry Date: Fri, 29 Mar 2019 09:15:58 -0300 Subject: Fix menor en delpost + css --- cgi/weabot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cgi/weabot.py') diff --git a/cgi/weabot.py b/cgi/weabot.py index 056a933..736ed85 100755 --- a/cgi/weabot.py +++ b/cgi/weabot.py @@ -795,7 +795,6 @@ class weabot(object): return (post_url, ttaken) def delete_post(self, boarddir, postid, imageonly, password, mobile=False): - # open database OpenDb() # set the board @@ -821,7 +820,7 @@ class weabot(object): # delete posts if board['board_type'] == '1' and len(to_delete) == 1: # we should be deleting only one (textboard) - # check if it's the last post and delete it completely if it is + # check if it's the last post and delete permanently if so deltype = '0' post = FetchOne("SELECT `id`, `timestamp`, `parentid` FROM `posts` WHERE `boardid` = %s AND `id` = %s LIMIT 1" % (board["id"], str(to_delete[0]))) if post['parentid'] != '0': -- cgit v1.2.1-18-gbd029