Commit Graph

3 Commits

Author SHA1 Message Date
Henrik Jess Nielsen
4a08016edf fix: SQLite column migration + startup init_schema + missing DB_URL warning
Some checks failed
Build and Deploy MoneyMaker / build-and-deploy (push) Has been cancelled
- db.py: auto-migrate missing columns (signal_correct, pnl_dkk, etc.) on existing SQLite DBs
- db.py: print warning to stderr if DATABASE_URL not set
- dashboard.py: call init_schema() at startup so columns always exist
2026-05-27 15:04:15 +02:00
Henrik Jess Nielsen
cd233a0c5a fix(db): pass params=None correctly to both psycopg2 and sqlite3
Some checks failed
Build and Deploy MoneyMaker / build-and-deploy (push) Failing after 11m37s
psycopg2 raises TypeError if params=None is passed to cur.execute()
sqlite3 raises ProgrammingError on unsupported parameter type
2026-05-27 00:11:55 +02:00
Henrik Jess Nielsen
05eed51e7d First commit 2026-05-26 22:21:27 +02:00