Skip to content

Commit

Permalink
add pydantic settings, add missing input from .env to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikmonsen committed Nov 17, 2023
1 parent c59c7b3 commit bac1267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
3 changes: 2 additions & 1 deletion src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from functools import lru_cache

from pydantic import BaseSettings
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
Expand All @@ -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"""
Expand Down

0 comments on commit bac1267

Please sign in to comment.