From b7e1bbd2c15961f3871e02cb3657cecc5f72b45f Mon Sep 17 00:00:00 2001 From: z411 Date: Mon, 9 Jan 2023 08:04:23 -0300 Subject: Año --- cgi/weabot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgi') diff --git a/cgi/weabot.py b/cgi/weabot.py index f032e20..a4f8b4b 100755 --- a/cgi/weabot.py +++ b/cgi/weabot.py @@ -882,8 +882,8 @@ class weabot(object): # we should be deleting only one (textboard) # 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]))) + post = FetchOne("SELECT `id`, `timestamp`, `parentid` FROM `posts` WHERE `boardid` = %s AND `id` = %s LIMIT 1", ( + board["id"], to_delete[0])) if post['parentid']: op = get_parent_post(post['parentid'], board['id']) if op['last'] != post['timestamp']: -- cgit v1.2.1-18-gbd029