files: reorganize imports, remove print lines

This commit is contained in:
2025-09-22 09:42:15 +02:00
parent 7079b4d47f
commit c4be1d8bfa
23 changed files with 127 additions and 110 deletions

View File

@@ -1,18 +1,20 @@
from .widget_sources.admin_edit_prof_ui import Ui_Dialog #
import sys
import loguru
from PySide6 import QtWidgets
from src.logic import Prof
from src.backend import Database
import loguru
import sys
from src import LOG_DIR
from src.backend import Database
from src.logic import Prof
from .widget_sources.admin_edit_prof_ui import Ui_Dialog #
log = loguru.logger
log.remove()
log.add(sys.stdout, level="INFO")
log.add(f"{LOG_DIR}/application.log", rotation="1 MB", retention="10 days")
class EditProf(QtWidgets.QDialog, Ui_Dialog):
def __init__(self):
super(EditProf, self).__init__()
@@ -55,11 +57,11 @@ class EditProf(QtWidgets.QDialog, Ui_Dialog):
# get the selected member
name = self.edit_faculty_member_select_member.currentText()
fullname = name.replace(",", "")
# print(fullname, name)
# #print(fullname, name)
# get the data for the selected member
data = self.db.getProfByName(fullname)
# set the data
# print(data)
# #print(data)
if data is None:
self.edit_faculty_member_title.setText("")
self.faculty_member_old_telnr.setText("")