Spaces:
Build error

0Mart00 commited on
Commit
a19cdb5
·
1 Parent(s): d2f5a24

Fix config validation for optional Paddle settings

Browse files
Files changed (1) hide show
  1. src/wordgame/core/config.py +3 -3
src/wordgame/core/config.py CHANGED
@@ -43,9 +43,9 @@ class Settings(BaseSettings):
43
  # External APIs
44
  SLANG_WORDS_URL: str = "https://raw.githubusercontent.com/Ashpex/Slang-Word/refs/heads/master/slang.txt"
45
 
46
- # Payment
47
- PADDLE_VENDOR_ID: Optional[int] = None
48
- PADDLE_API_KEY: Optional[str] = None
49
 
50
  model_config = {
51
  "env_file": ".env",
 
43
  # External APIs
44
  SLANG_WORDS_URL: str = "https://raw.githubusercontent.com/Ashpex/Slang-Word/refs/heads/master/slang.txt"
45
 
46
+ # Payment (optional) - stored as strings to handle empty .env values
47
+ PADDLE_VENDOR_ID: str = ""
48
+ PADDLE_API_KEY: str = ""
49
 
50
  model_config = {
51
  "env_file": ".env",