diff options
author | TOW | 2019-03-29 09:04:27 -0300 |
---|---|---|
committer | TOW | 2019-03-29 09:04:27 -0300 |
commit | 2f7bc2a8e8daf338621736b78916f07af254ba68 (patch) | |
tree | 96b70891138c3bf65fca13abefc7a20cfff572b9 /cgi | |
parent | 11cf1bfb6856f09b0123d2aeafa25abd6ef526b9 (diff) | |
download | weabot-2f7bc2a8e8daf338621736b78916f07af254ba68.tar.gz weabot-2f7bc2a8e8daf338621736b78916f07af254ba68.tar.xz weabot-2f7bc2a8e8daf338621736b78916f07af254ba68.zip |
api/last debiera retornar todos los Ășltimos posts
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ def api_process(self, path_split): if limit > 50: raise APIError, "Maximum limit is 50" - sql = "SELECT posts.id, boards.dir, timestamp, timestamp_formatted, posts.name, tripcode, email, posts.subject, posts.message, file, file_size, image_height, image_width, thumb, thumb_width, thumb_height, parentid FROM posts INNER JOIN boards ON boardid = boards.id WHERE timestamp > %d AND IS_DELETED = 0 AND email NOT LIKE '%%sage%%' AND boards.secret = 0 ORDER BY timestamp DESC LIMIT %d" % (since, limit) + sql = "SELECT posts.id, boards.dir, timestamp, timestamp_formatted, posts.name, tripcode, email, posts.subject, posts.message, file, file_size, image_height, image_width, thumb, thumb_width, thumb_height, parentid FROM posts INNER JOIN boards ON boardid = boards.id WHERE timestamp > %d AND IS_DELETED = 0 AND boards.secret = 0 ORDER BY timestamp DESC LIMIT %d" % (since, limit) values['posts'] = FetchAll(sql) for post in values['posts']: |