Tune editor

This commit is contained in:
marc committed 2025-03-16 18:45:08 +01:00
1 parent a85efd0838
commit 6c83d11e5b
33 files changed
+960 -312

No files matched your search

+10 -1
View File
@@ -5,6 +5,15 @@ from folkugat_web.log import logger
DB_DIR = Path(os.getenv("DB_DIR", "/home/marc/tmp/folkugat")).resolve()
DB_FILE = DB_DIR / "folkugat.db"
DB_TEMES_DIR = DB_DIR / "temes"
logger.info(f"Using DB_DIR: {DB_DIR}")
# Files db
DB_FILES_DIR = DB_DIR / "fitxer"
DB_FILES_DIR.mkdir(exist_ok=True)
DB_FILES_URL = "/db/fitxer"
_MB = 1024 * 1024
FILE_MAX_SIZE = 10 * _MB