Expand dashboard analytics and document production implementation

This commit is contained in:
maxwes08
2026-11-03 14:49:01 +01:00
parent 70b94f8672
commit aa0028e7e0
36 changed files with 2212 additions and 76 deletions

View File

@@ -10,6 +10,7 @@ from urllib.parse import parse_qs, unquote, urlparse
import psycopg
from database import connect
from sample_api import ApiError, dispatch
from health_reports import start_daily_reports
STATIC_ROOT=Path(__file__).resolve().parent
@@ -57,6 +58,7 @@ def main():
with connect() as conn: conn.execute('SELECT 1 FROM games LIMIT 1')
port=int(os.environ.get('MOCKUP_PORT','8011'))
server=ThreadingHTTPServer(('127.0.0.1',port),Handler)
start_daily_reports()
print(f'PostgreSQL mockups: http://127.0.0.1:{port}/mockups/overview-mockup.html',flush=True)
try: server.serve_forever()
except KeyboardInterrupt: server.server_close()