aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-25 23:55:11 -0300
committerLibravatar Renard 2019-09-25 23:55:11 -0300
commit9a459e2f94fb81077ed3a94c6fe73470e608e7f0 (patch)
treeac6cd5794c39987d6b9c85ad8e1bad42cbd26080 /cgi
parentbadbbe62786b054ec73b7a2663af5de0169b14b9 (diff)
downloadweabot-9a459e2f94fb81077ed3a94c6fe73470e608e7f0.tar.gz
weabot-9a459e2f94fb81077ed3a94c6fe73470e608e7f0.tar.xz
weabot-9a459e2f94fb81077ed3a94c6fe73470e608e7f0.zip
Fix query boardsExtra
Diffstat (limited to 'cgi')
-rw-r--r--cgi/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/api.py b/cgi/api.py
index 9321037..828dff1 100644
--- a/cgi/api.py
+++ b/cgi/api.py
@@ -390,7 +390,7 @@ def api_process(self, path_split):
latest_news = FetchAll("SELECT `timestamp`, `message`, `timestamp_formatted` FROM `news` WHERE `type` = '2' ORDER BY `timestamp` DESC LIMIT " + str(Settings.HOME_NEWS))
values["news"] = latest_news
elif method == 'boardsExtra':
- boards = FetchAll('SELECT dir, name, longname, subname, postarea_desc, postarea_extra, anonymous, subject, message, disable_name, disable_subject, allow_spoilers, allow_oekaki, num_threads, board_type, allow_images, allow_image_replies, maxsize FROM `boards` WHERE `secret`=0 ORDER BY `sort` ASC')
+ boards = FetchAll('SELECT dir, name, longname, subname, postarea_desc, postarea_extra, anonymous, subject, message, disable_name, disable_subject, allow_spoilers, allow_oekaki, numthreads, board_type, allow_images, allow_image_replies, maxsize FROM `boards` WHERE `secret`=0 ORDER BY `sort` ASC')
values['boards'] = boards
for board in values['boards']:
board['board_type'] = int(board['board_type'])
@@ -400,7 +400,7 @@ def api_process(self, path_split):
board['disable_subject'] = int(board['disable_subject'])
board['allow_spoilers'] = int(board['allow_spoilers'])
board['allow_oekaki'] = int(board['allow_oekaki'])
- board['num_threads'] = int(board['num_threads'])
+ board['numthreads'] = int(board['numthreads'])
board['maxsize'] = int(board['maxsize'])
else:
raise APIError, "Invalid method"