Feature: ORS-Stats im Admin-Panel — Tagesverbrauch/2000, 30-Tage-Sparkline, Top-Nutzer — SW by-v485, APP_VER 462
This commit is contained in:
parent
69140a261e
commit
392359df45
6 changed files with 170 additions and 3 deletions
|
|
@ -1422,3 +1422,14 @@ def _migrate(conn_factory):
|
|||
);
|
||||
""")
|
||||
logger.info("Migration: route_suggest_usage Tabelle bereit.")
|
||||
|
||||
# ORS tägliche Gesamtaufrufe (für Admin-Dashboard)
|
||||
existing_ors = conn.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='ors_daily_total'").fetchone()
|
||||
if not existing_ors:
|
||||
conn.executescript("""
|
||||
CREATE TABLE ors_daily_total (
|
||||
date TEXT PRIMARY KEY,
|
||||
count INTEGER NOT NULL DEFAULT 0
|
||||
);
|
||||
""")
|
||||
logger.info("Migration: ors_daily_total erstellt.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue