From bac12677ac5658a699d66a508ab53f8a9249b55a Mon Sep 17 00:00:00 2001 From: Fredrik Monsen Date: Fri, 17 Nov 2023 13:03:55 +0100 Subject: [PATCH] add pydantic settings, add missing input from .env to settings --- requirements.txt | 3 ++- src/settings.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 2c681be..73d2b50 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ pymupdf==1.23.6 python-dateutil==2.8.2 -dateparser==1.1.8 +dateparser==1.2.0 requests==2.31.0 python-decouple==3.8 regex==2023.10.3 @@ -16,3 +16,4 @@ markdown==3.5.1 secure==0.3.0 mysql-connector-python==8.2.0 langdetect==1.0.9 +pydantic-settings==2.1.0 diff --git a/src/settings.py b/src/settings.py index abb1db1..532eda4 100644 --- a/src/settings.py +++ b/src/settings.py @@ -3,7 +3,7 @@ from functools import lru_cache -from pydantic import BaseSettings +from pydantic_settings import BaseSettings class Settings(BaseSettings): @@ -23,6 +23,7 @@ class Settings(BaseSettings): USE_GIELLADETECT: bool = False GIELLADETECT_LANGS: str = "" CUSTOM_PATH: str = "" + DIFF_FILES_FOLDER: str = "" class Config: """Specify name of settings file"""