From 40e7632b1dc6bcf9183340ce60a2d1e563abfd31 Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sun, 25 Feb 2024 15:24:37 +0100 Subject: [PATCH] ruff check vergeten --- backend/db/implementation/SqlSubmissionDAO.py | 7 +++---- backend/fill_database_mock.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/db/implementation/SqlSubmissionDAO.py b/backend/db/implementation/SqlSubmissionDAO.py index 36d4426b..018f449e 100644 --- a/backend/db/implementation/SqlSubmissionDAO.py +++ b/backend/db/implementation/SqlSubmissionDAO.py @@ -1,10 +1,9 @@ -from typing import List -from db.errors.database_errors import ItemNotFoundError, UniqueConstraintError +from db.errors.database_errors import ItemNotFoundError from db.extensions import db from db.interface.SubmissionDAO import SubmissionDAO -from db.models.models import Student, Subject, Teacher, Project, Group, Submission -from domain.models.models import SubjectDataclass, SubmissionDataclass +from db.models.models import Group, Student, Submission +from domain.models.models import SubmissionDataclass class SqlSubmissionDAO(SubmissionDAO): diff --git a/backend/fill_database_mock.py b/backend/fill_database_mock.py index 1550a561..d33f271a 100644 --- a/backend/fill_database_mock.py +++ b/backend/fill_database_mock.py @@ -15,10 +15,10 @@ from db.interface.ProjectDAO import ProjectDAO from db.interface.StudentDAO import StudentDAO from db.interface.SubjectDAO import SubjectDAO +from db.interface.SubmissionDAO import SubmissionDAO from db.interface.TeacherDAO import TeacherDAO from db.interface.UserDAO import UserDAO -from db.interface.SubmissionDAO import SubmissionDAO -from domain.models.models import GroupDataclass, ProjectDataclass, SubjectDataclass, UserDataclass, SubmissionDataclass +from domain.models.models import GroupDataclass, ProjectDataclass, SubjectDataclass, SubmissionDataclass, UserDataclass if __name__ == "__main__": with app.app_context():