refactor: integrate dashboard into server.py :8899, remove standalone dashboard

This commit is contained in:
hmo
2026-07-19 11:06:50 +08:00
parent 782a914a3c
commit b08bfa5d03
19 changed files with 300 additions and 330 deletions
+7
View File
@@ -0,0 +1,7 @@
import sqlite3
db = sqlite3.connect('/home/hmo/web-dashboard/data/mofin.db')
tables = [r[0] for r in db.execute("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name")]
for t in tables:
cols = [r[1] for r in db.execute(f"PRAGMA table_info({t})")]
print(f"{t}: {', '.join(cols)}")
db.close()