aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/post.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/post.py b/cgi/post.py
index bc502e5..e45e2fe 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -831,11 +831,11 @@ def trimThreads():
alert_time = int(round(board['maxage'] * Settings.MAX_AGE_ALERT))
time_limit = t + (alert_time * 86400)
old_ops = FetchAll("SELECT `id`, `timestamp`, `expires`, `expires_alert`, `length` FROM `posts` WHERE `boardid` = %s AND `parentid` = 0 AND IS_DELETED = 0 AND `expires` > 0 AND `expires` < %s LIMIT 50", (board['id'], time_limit))
- logging.debug("Old OPs 1: " + repr(old_ops))
for op in old_ops:
if t >= op['expires']:
# Trim old threads
+ logging.debug("Old OP 1: " + repr(op))
if board['archive'] and op["length"] >= Settings.ARCHIVE_MIN_LENGTH:
archiveThread(op["id"])
archived = True