aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar z411 2023-01-09 08:04:23 -0300
committerLibravatar Choom 2023-01-09 08:41:09 -0300
commitb7e1bbd2c15961f3871e02cb3657cecc5f72b45f (patch)
tree1c5aa0148b25f00950b2e818c15de332442529fb /cgi
parente9673535fe085a8b82101fb5f0a005e3a16cfa97 (diff)
downloadweabot-b7e1bbd2c15961f3871e02cb3657cecc5f72b45f.tar.gz
weabot-b7e1bbd2c15961f3871e02cb3657cecc5f72b45f.tar.xz
weabot-b7e1bbd2c15961f3871e02cb3657cecc5f72b45f.zip
Año
Diffstat (limited to 'cgi')
-rwxr-xr-xcgi/weabot.py4
1 files changed, 2 insertions, 2 deletions
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']: