aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
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']: