From d56dff8b21a0add21ff4bab845c541b86bbb990f Mon Sep 17 00:00:00 2001 From: neptune Date: Sat, 17 Dec 2022 21:24:14 -0300 Subject: Actualizado debug --- cgi/post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgi') 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 -- cgit v1.2.1-18-gbd029