diff --git a/backend/app/app/api/deps.py b/backend/app/app/api/deps.py index 7a38fff..07eec74 100644 --- a/backend/app/app/api/deps.py +++ b/backend/app/app/api/deps.py @@ -1,7 +1,6 @@ from typing import Generator, Optional from fastapi import Depends, HTTPException, status -from jose import jwt, JWTError from pydantic import BaseModel from sqlalchemy.orm.session import Session @@ -10,10 +9,6 @@ from app import crud -class TokenData(BaseModel): - username: Optional[str] = None - - def get_db() -> Generator: db = SessionLocal() try: diff --git a/backend/app/app/tasks/job.py b/backend/app/app/tasks/job.py index 3e22cbb..16b3066 100644 --- a/backend/app/app/tasks/job.py +++ b/backend/app/app/tasks/job.py @@ -8,7 +8,6 @@ # from app.schemas.source import SourceUpdate from app.schemas.article import ArticleUpdate from app import crud -from app.api import deps from sqlalchemy.orm import Session from app.api import deps from app.db.session import SessionLocal diff --git a/compose/local/requirements.txt b/compose/local/requirements.txt index ecc68d2..23d5e33 100644 --- a/compose/local/requirements.txt +++ b/compose/local/requirements.txt @@ -12,7 +12,6 @@ cffi==1.15.1 email-validator==2.2.0 pydantic==1.10.13 passlib==1.7.4 -python-jose==3.3.0 httpx==0.23.3 python-multipart==0.0.9 gunicorn==22.0.0