fix: add missing assets command (#100)

This commit is contained in:
Eneko 2020-09-28 23:11:59 +02:00 committed by GitHub
parent d8da88aefa
commit f60cebb072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ from quart_cors import cors # type: ignore
from quart_compress import Compress # type: ignore from quart_compress import Compress # type: ignore
from secure import SecureHeaders # type: ignore from secure import SecureHeaders # type: ignore
from .commands import db_migrate from .commands import db_migrate, handle_assets
from .core import core_app from .core import core_app
from .db import open_db from .db import open_db
from .helpers import get_valid_extensions, get_js_vendored, get_css_vendored, url_for_vendored from .helpers import get_valid_extensions, get_js_vendored, get_css_vendored, url_for_vendored
@ -49,6 +49,7 @@ def register_blueprints(app: Quart) -> None:
def register_commands(app: Quart): def register_commands(app: Quart):
"""Register Click commands.""" """Register Click commands."""
app.cli.add_command(db_migrate) app.cli.add_command(db_migrate)
app.cli.add_command(handle_assets)
def register_assets(app: Quart): def register_assets(app: Quart):