TTT / app /core /config.py
github-actions[bot]
Auto-deploy from GitHub: 5e42323d323d52c3ad4f0ba042c88d1abb55405f
1a252b6
raw
history blame contribute delete
356 Bytes
import os
class Config:
PORT = int(os.environ.get('PORT', 7860))
UPLOAD_FOLDER = 'uploads'
TEMP_DIR = 'temp_dir'
DATABASE_FILE = 'text_tasks.db'
# Core logic settings
POLL_INTERVAL = 3
CLEANUP_DAYS = 10
settings = Config()
os.makedirs(settings.UPLOAD_FOLDER, exist_ok=True)
os.makedirs(settings.TEMP_DIR, exist_ok=True)