diff options
author | TOW | 2019-03-29 09:25:05 -0300 |
---|---|---|
committer | TOW | 2019-03-29 09:25:05 -0300 |
commit | 87136e725c4f0038b59f89914f196475c387bb6e (patch) | |
tree | 229120ddddda9de0d5f0a623a3e073a483d4705e | |
parent | 84c289832bb4e472d570b2d098e19c106f6a2bbd (diff) | |
download | weabot-87136e725c4f0038b59f89914f196475c387bb6e.tar.gz weabot-87136e725c4f0038b59f89914f196475c387bb6e.tar.xz weabot-87136e725c4f0038b59f89914f196475c387bb6e.zip |
API ahora retorna boards en orden
-rw-r--r-- | cgi/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']) |