Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
is pyright nu happy? en ruff?
Browse files Browse the repository at this point in the history
  • Loading branch information
matt01y committed Feb 27, 2024
1 parent 7040b56 commit a15d1d3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion backend/db/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from fastapi_sqlalchemy import SQLAlchemy
from sqlalchemy import create_engine


db_host = os.getenv("DB_HOST", "localhost")
db_port = os.getenv("DB_PORT", "5432")
db_user = os.getenv("DB_USERNAME", "postgres")
Expand Down
2 changes: 1 addition & 1 deletion backend/db/implementation/SqlSubjectDAO.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from db.errors.database_errors import ItemNotFoundError, UniqueConstraintError
from db.extensions import db
from db.interface.SubjectDAO import SubjectDAO
from db.models.models import Student, Subject, Teacher
from domain.models.SubjectDataclass import SubjectDataclass
from db.extensions import db


class SqlSubjectDAO(SubjectDAO):
Expand Down
2 changes: 1 addition & 1 deletion backend/db/implementation/SqlTeacherDAO.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from sqlalchemy import select

from db.errors.database_errors import ItemNotFoundError
from db.interface.TeacherDAO import TeacherDAO
from db.extensions import db
from db.interface.TeacherDAO import TeacherDAO
from db.models.models import Teacher
from domain.models.TeacherDataclass import TeacherDataclass

Expand Down

0 comments on commit a15d1d3

Please sign in to comment.