updated backend imports for clarity, enhanced sync logic, and expanded proxy routes in frontend

This commit is contained in:
2025-08-04 22:38:53 +02:00
parent c3eb540261
commit 26c3cc79d7
4 changed files with 25 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ import logging
import os
from pathlib import Path
DB_PATH = Path(os.getenv("DB_NAME", "owlynews.sqlite3"))
DB_PATH = Path(os.getenv("DB_NAME", os.path.join(os.path.dirname(os.path.dirname(__file__)), "owlynews.sqlite3")))
OLLAMA_HOST = os.getenv("OLLAMA_HOST", "http://localhost:11434")
MIN_CRON_HOURS = float(os.getenv("MIN_CRON_HOURS", 0.5))
DEFAULT_CRON_HOURS = float(os.getenv("CRON_HOURS", MIN_CRON_HOURS))