aboutsummaryrefslogtreecommitdiff
path: root/cgi/manage.py
diff options
context:
space:
mode:
authorLibravatar Renard 2020-03-14 14:05:50 -0300
committerLibravatar Renard 2020-03-14 14:05:50 -0300
commit6cacc33541e7bec8c85a59a6ca4a60c09354ace9 (patch)
tree3077de04580cd7e5debb5c6709676b6ebc49d4d8 /cgi/manage.py
parent270807dda107f36e2aeb1955bf89b07e96dcd77a (diff)
downloadweabot-6cacc33541e7bec8c85a59a6ca4a60c09354ace9.tar.gz
weabot-6cacc33541e7bec8c85a59a6ca4a60c09354ace9.tar.xz
weabot-6cacc33541e7bec8c85a59a6ca4a60c09354ace9.zip
Prueba post recientes
Diffstat (limited to 'cgi/manage.py')
-rw-r--r--cgi/manage.py4
1 files changed, 4 insertions, 0 deletions
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