Expand dashboard analytics and document production implementation
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user