refactor: integrate dashboard into server.py :8899, remove standalone dashboard
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user