goalsbreakdown/config.py
Yuyao Huang a8fe6ed7b3 Migrate from TinyDB to SQLite
- Replace TinyDB (JSON file) with sqlite3 for data persistence
- Add schema.py: table creation + data migration from db.json
- Rewrite database.py: all CRUD operations use sqlite3 directly
- All data retains original IDs via migration script
- Remove tinydb dependency from pyproject.toml
2026-05-08 16:18:26 +08:00

14 lines
281 B
Python

import os
DB_PATH = os.path.join(os.path.dirname(__file__), "data", "db.sqlite")
DEFAULT_ADMIN_USERNAME = "admin"
DEFAULT_ADMIN_PASSWORD = "admin123"
DEFAULT_MAX_GOALS = 5
SECRET_KEY = "goals-breakdown-secret-key-change-in-production"
DEBUG = True
HOST = "0.0.0.0"
PORT = 5000