aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar TOW 2019-03-29 09:04:27 -0300
committerLibravatar TOW 2019-03-29 09:04:27 -0300
commit2f7bc2a8e8daf338621736b78916f07af254ba68 (patch)
tree96b70891138c3bf65fca13abefc7a20cfff572b9
parent11cf1bfb6856f09b0123d2aeafa25abd6ef526b9 (diff)
downloadweabot-2f7bc2a8e8daf338621736b78916f07af254ba68.tar.gz
weabot-2f7bc2a8e8daf338621736b78916f07af254ba68.tar.xz
weabot-2f7bc2a8e8daf338621736b78916f07af254ba68.zip
api/last debiera retornar todos los Ășltimos posts
-rw-r--r--cgi/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/api.py b/cgi/api.py
index 8960578..86ada3a 100644
--- a/cgi/api.py
+++ b/cgi/api.py
@@ -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']: