From 87136e725c4f0038b59f89914f196475c387bb6e Mon Sep 17 00:00:00 2001 From: TOW Date: Fri, 29 Mar 2019 09:25:05 -0300 Subject: API ahora retorna boards en orden --- cgi/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgi') 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']) -- cgit v1.2.1-18-gbd029