rework icons, codechanges, bugfixes, typofixes

This commit is contained in:
WorldTeacher
2024-10-09 08:47:48 +02:00
parent cd74214c17
commit 2746b917eb
58 changed files with 142 additions and 89 deletions

View File

@@ -188,7 +188,16 @@ class Database:
"""
conn = self.connect()
cursor = conn.cursor()
log_message = f"{self.get_caller_line()} Querying database with query {query}, args: {args}"
logs_query = query
logs_args = args
if "fileblob" in query:
#set fileblob arg in logger to "too long"
logs_query = query
fileblob_location = query.find("fileblob")
#remove fileblob from query
logs_query = query[:fileblob_location] + "fileblob = too long"
log_message = f"{self.get_caller_line()} Querying database with query {logs_query}, args: {logs_args}"
# if "INSERT" in query:
# log_message = f"Querying database with query {query}"