aboutsummaryrefslogtreecommitdiff
path: root/cgi/api.py
diff options
context:
space:
mode:
authorLibravatar Terry 2019-03-29 09:26:59 -0300
committerLibravatar Terry 2019-03-29 09:26:59 -0300
commit1e756436157fd6d8b599bd0ef79b6b4959c876f5 (patch)
treec795d4e206825c1da59ed78ef4d61b0cd8dc2d2b /cgi/api.py
parent48c2355d0ac6e433769d0e3dfc5df33df405fb78 (diff)
parent87136e725c4f0038b59f89914f196475c387bb6e (diff)
downloadweabot-1e756436157fd6d8b599bd0ef79b6b4959c876f5.tar.gz
weabot-1e756436157fd6d8b599bd0ef79b6b4959c876f5.tar.xz
weabot-1e756436157fd6d8b599bd0ef79b6b4959c876f5.zip
Merge branch 'master' of https://git.bienvenidoainternet.org/priv/www
Diffstat (limited to 'cgi/api.py')
-rw-r--r--cgi/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/api.py b/cgi/api.py
index 86ada3a..ce1e467 100644
--- a/cgi/api.py
+++ b/cgi/api.py
@@ -42,7 +42,7 @@ def api_process(self, path_split):
values = {'state': 'success'}
if method == 'boards':
- boards = FetchAll('SELECT dir, name, board_type, allow_images, allow_image_replies, maxsize FROM `boards` WHERE `secret`=0 ORDER BY `name` ASC')
+ boards = FetchAll('SELECT dir, name, 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'])