diff --git a/s3worker/config.py b/s3worker/config.py index 2d080e1..c474ccb 100644 --- a/s3worker/config.py +++ b/s3worker/config.py @@ -17,4 +17,3 @@ class Settings(BaseSettings): @lru_cache() def get_settings(): return Settings() - diff --git a/s3worker/tasks.py b/s3worker/tasks.py index e599267..1bff226 100644 --- a/s3worker/tasks.py +++ b/s3worker/tasks.py @@ -63,7 +63,6 @@ def remove_page_thumbnail_task(page_ids: list[str]): ) def generate_preview_task(doc_id: str): logger.debug('Task started') - Session = db.get_db() try: with Session() as db_session: