minor and major reworks: rename swb to SRU, add a test for pdf parsing

major: rework mail to send mail as plaintext instead of html, preventing the bleed-in of html text
This commit is contained in:
2025-10-07 14:15:10 +02:00
parent 0df7fd9fe6
commit 06965db26a
25 changed files with 1174 additions and 303 deletions

View File

@@ -1,9 +1,10 @@
from .widget_sources.admin_query_ui import Ui_Form
from PySide6 import QtCore, QtWidgets
from PySide6 import QtWidgets, QtCore
from src import Icon
from src.backend import Database
from .widget_sources. import Ui_Form
class AdminQueryWidget(QtWidgets.QWidget, Ui_Form):
def __init__(self, parent=None):
@@ -22,7 +23,7 @@ class AdminQueryWidget(QtWidgets.QWidget, Ui_Form):
return
data = self.db.query_db(request_text)
print(data)
# print(data)
table_names = (
request_text.lower().split("select")[1].split("from")[0].split(",")
)