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

@@ -2,12 +2,10 @@ import random
import sys
from typing import Any, Union
import loguru
from PySide6 import QtWidgets, QtCore, QtGui
from PySide6.QtCore import Qt
from PySide6.QtGui import QPainter, QPen, QColor
from PySide6.QtCharts import QChart, QChartView, QLineSeries, QValueAxis, QCategoryAxis
from PySide6 import QtCore, QtGui, QtWidgets
from PySide6.QtCharts import QCategoryAxis, QChart, QChartView, QLineSeries, QValueAxis
from PySide6.QtGui import QColor, QPainter, QPen
from src import LOG_DIR
from src.backend.semester import Semester
@@ -34,6 +32,7 @@ def mergedicts(d1: dict[str, Any], d2: dict[str, Any]):
res.update(d2_dict) # type: ignore
return res
class DataQtGraph(QtWidgets.QWidget):
def __init__(
self,
@@ -72,8 +71,8 @@ class DataQtGraph(QtWidgets.QWidget):
# get the index of the semester in x_data
if semester in x_data:
index = x_data.index(semester)
print("index:", index)
print(key, y_data[key])
# print("index:", index)
# print(key, y_data[key])
data["y"].append(y_data[key][index])
lst.append(data)
# for key in y_data:
@@ -110,7 +109,7 @@ class DataQtGraph(QtWidgets.QWidget):
self.chart.createDefaultAxes()
for entry in lst:
print("entry:", entry)
# print("entry:", entry)
entryseries = QLineSeries()
for x_val, y_val in zip(entry["x"], entry["y"]):
#