From 6cacc33541e7bec8c85a59a6ca4a60c09354ace9 Mon Sep 17 00:00:00 2001 From: Renard Date: Sat, 14 Mar 2020 14:05:50 -0300 Subject: Prueba post recientes --- cgi/manage.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cgi/manage.py') diff --git a/cgi/manage.py b/cgi/manage.py index 0c95268..86d8ffa 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -158,6 +158,10 @@ def manage(self, path_split): threads = FetchAll("SELECT * FROM `posts` WHERE boardid = %s AND parentid = 0 ORDER BY `bumped` DESC" % board["id"]) 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") + template_filename = "recent.html" + template_values = {"posts": posts} elif path_split[2] == 'staff': if staff_account['rights'] != '0': return -- cgit v1.2.1-18-gbd029