diff options
author | Renard | 2020-03-14 15:58:53 -0300 |
---|---|---|
committer | Renard | 2020-03-14 15:58:53 -0300 |
commit | 251505e1c63abf44cf75daef2135b14b51b42557 (patch) | |
tree | da7d80e22bcb6efa2068b507021233ca2e1744d2 /cgi/manage.py | |
parent | a88ff0d55d23474381093eadcb5b1e90cdd878e0 (diff) | |
download | weabot-251505e1c63abf44cf75daef2135b14b51b42557.tar.gz weabot-251505e1c63abf44cf75daef2135b14b51b42557.tar.xz weabot-251505e1c63abf44cf75daef2135b14b51b42557.zip |
Mod: posts recientes
Diffstat (limited to 'cgi/manage.py')
-rw-r--r-- | cgi/manage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/manage.py b/cgi/manage.py index 86d8ffa..776747e 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -159,7 +159,7 @@ def manage(self, path_split): template_filename = "mod.html" template_values = {"mode": 2, "dir": board["dir"], "threads": threads} elif path_split[2] == "recent": - posts = FetchAll("SELECT * FROM `posts` WHERE parentid > 0 ORDER BY `timestamp` DESC LIMIT 50") + posts = FetchAll("SELECT posts.id, posts.subject, dir, parentid, file, thumb, timestamp_formatted, timestamp, posts.message, INET_NTOA(ip) AS ip, posts.name, email, tripcode FROM posts INNER JOIN boards ON posts.boardid = boards.id ORDER BY timestamp DESC LIMIT 50") template_filename = "recent.html" template_values = {"posts": posts} elif path_split[2] == 'staff': |