WebHost: add stats show cli command (#5995)

Usage: flask -A "WebHost:get_app()" stats show

Currently only shows sum and top10 biggest games packages.
This commit is contained in:
black-sliver
2026-03-10 18:57:04 +00:00
committed by GitHub
parent f00d29e072
commit 3235863f2e
3 changed files with 46 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ from pony.flask import Pony
from werkzeug.routing import BaseConverter
from Utils import title_sorted, get_file_safe_name
from .cli import CLI
UPLOAD_FOLDER = os.path.relpath('uploads')
LOGS_FOLDER = os.path.relpath('logs')
@@ -64,6 +65,7 @@ app.config["ASSET_RIGHTS"] = False
cache = Cache()
Compress(app)
CLI(app)
def to_python(value: str) -> uuid.UUID: