aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar neptune 2022-12-17 21:24:14 -0300
committerLibravatar Choom 2022-12-18 02:54:56 -0300
commitd56dff8b21a0add21ff4bab845c541b86bbb990f (patch)
tree99d8688d815701981ed22294be1679c11edc6f0f
parent60ab15c63b815d8cdf29d7a3cb806daccdc02d06 (diff)
downloadweabot-d56dff8b21a0add21ff4bab845c541b86bbb990f.tar.gz
weabot-d56dff8b21a0add21ff4bab845c541b86bbb990f.tar.xz
weabot-d56dff8b21a0add21ff4bab845c541b86bbb990f.zip
Actualizado debug
-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