refactor: clean up unused imports and improve code organization

This commit is contained in:
2025-03-26 10:21:11 +01:00
parent 12d54c78a9
commit f6f9f89354
40 changed files with 90 additions and 102 deletions

View File

@@ -2,7 +2,6 @@ from .dialog_sources.Ui_about import Ui_about
from PyQt6 import QtWidgets
from PyQt6.QtCore import PYQT_VERSION_STR
from src import Icon, __version__, __author__
from omegaconf import OmegaConf
class About(QtWidgets.QDialog, Ui_about):

View File

@@ -1,7 +1,6 @@
from PyQt6 import QtWidgets
from .dialog_sources.Ui_apparat_extend import Ui_Dialog
from src import Icon
from src.backend import Semester
class ApparatExtendDialog(QtWidgets.QDialog, Ui_Dialog):

View File

@@ -1,9 +1,8 @@
from PyQt6 import QtCore, QtWidgets
from PyQt6 import QtWidgets
from src.logic.dataclass import BookData
from .dialog_sources.Ui_edit_bookdata import Ui_Dialog
from src import Icon
class BookDataUI(QtWidgets.QDialog, Ui_Dialog):

View File

@@ -6,7 +6,7 @@
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtCore
class Ui_Form(object):

View File

@@ -6,7 +6,7 @@
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtCore, QtWidgets
class Ui_extend_confirm(object):

View File

@@ -6,7 +6,7 @@
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtCore, QtWidgets
class Ui_Dialog(object):

View File

@@ -6,7 +6,7 @@
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtCore, QtWidgets
class Ui_Dialog(object):

View File

@@ -6,7 +6,7 @@
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtCore, QtWidgets
class Ui_Erinnerung(object):

View File

@@ -6,7 +6,7 @@
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtCore, QtWidgets
class Ui_Dialog(object):

View File

@@ -1,5 +1,5 @@
from .dialog_sources.Ui_elsa_generator_confirm import Ui_Dialog
from PyQt6 import QtCore, QtWidgets, QtGui
from PyQt6 import QtWidgets
class ElsaGenConfirm(QtWidgets.QDialog, Ui_Dialog):

View File

@@ -1,5 +1,4 @@
from PyQt6 import QtWidgets
from PyQt6.QtCore import Qt
from src.logic.webrequest import BibTextTransformer, WebRequest

View File

@@ -1,6 +1,6 @@
import hashlib
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtCore, QtWidgets
from src import Icon, logger
from src.backend.admin_console import AdminCommands

View File

@@ -6,7 +6,7 @@
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtCore, QtWidgets
class Ui_Dialog(object):

View File

@@ -1,4 +1,4 @@
from PyQt6 import QtCore, QtWidgets
from PyQt6 import QtWidgets
from src.backend import AutoAdder

View File

@@ -6,7 +6,7 @@
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6 import QtWidgets
from src import Icon