aboutsummaryrefslogtreecommitdiff
path: root/cgi/post.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/post.py')
-rw-r--r--cgi/post.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cgi/post.py b/cgi/post.py
index 07b05bc..cb531dd 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -1111,6 +1111,15 @@ def regenerateNews():
finally:
f.close()
+def regenerateTrash():
+ posts = FetchAll("SELECT posts.id AS id, timestamp_formatted, posts.message AS message, boards.name AS board FROM `posts` INNER JOIN `boards` ON boardid = boards.id WHERE IS_DELETED = 2 ORDER BY `timestamp` DESC")
+ template_values = {'posts': posts}
+
+ page_rendered = renderTemplate('trash.html', template_values)
+
+ with open(Settings.HOME_DIR + "basural.html", "w") as f:
+ f.write(page_rendered)
+
def regenerateAccess():
if not Settings.HTACCESS_GEN:
return False