aboutsummaryrefslogtreecommitdiff
path: root/cgi/post.py
diff options
context:
space:
mode:
authorLibravatar Renard 2020-07-30 21:24:11 -0400
committerLibravatar Renard 2020-07-30 21:24:11 -0400
commit299fd02d0616380ed60d180763483b004c004ad9 (patch)
treea2b5357e3d1d7c6c179ddc0602b4adf86d9873ad /cgi/post.py
parenta9f0898128901b824aa339fccf4ccf8d691993ad (diff)
parent89630525f6d84cd58ffa6df79751bf4ff3946fcb (diff)
downloadweabot-299fd02d0616380ed60d180763483b004c004ad9.tar.gz
weabot-299fd02d0616380ed60d180763483b004c004ad9.tar.xz
weabot-299fd02d0616380ed60d180763483b004c004ad9.zip
Merge branch 'master' of https://git.bienvenidoainternet.org/priv/www
Diffstat (limited to 'cgi/post.py')
-rw-r--r--cgi/post.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/cgi/post.py b/cgi/post.py
index da2ad47..e27b971 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -7,6 +7,7 @@ import threading
import Queue
import _mysql
import formatting
+import logging
from database import *
from template import *
@@ -49,7 +50,7 @@ class Post(object):
return self.post
def insert(self):
- logTime("Insertando Post")
+ logging.info("Insertando Post")
post_values = []
for key, value in self.post.iteritems():
@@ -715,7 +716,7 @@ def deletePost(postid, password, deltype='0', imageonly=False, quick=False):
if int(post["parentid"]) == 0:
deleteReplies(post)
- logTime("Deleting post " + str(postid))
+ logging.info("Deleting post " + str(postid))
if deltype != '0' and post["parentid"] != '0':
# Soft delete (recycle bin)
UpdateDb("UPDATE `posts` SET `IS_DELETED` = %s WHERE `boardid` = %s AND `id` = %s LIMIT 1" % (deltype, board["id"], post["id"]))
@@ -788,7 +789,7 @@ def trimThreads():
"""
Delete any threads which have passed the MAX_THREADS setting
"""
- logTime("Trimming threads")
+ logging.debug("Trimming threads")
board = Settings._.BOARD
archived = False
@@ -1026,7 +1027,7 @@ def regenerateHome():
"""
Update index.html in the boards directory with useful data for users
"""
- logTime("Updating home")
+ logging.debug("Updating home")
t = datetime.datetime.now()
limit = Settings.HOME_LASTPOSTS