add new and moved CLI commands to init

This commit is contained in:
Lili (Tlapka) 2022-11-07 16:45:29 +01:00
parent 657854eb5d
commit 7b9dbc805c
1 changed files with 4 additions and 6 deletions

View File

@ -30,14 +30,12 @@ def create_app(test_config=None):
app.register_blueprint(owncast_webhooks.bp)
app.register_blueprint(owncast_redeem_dashboard.bp)
# add db initialization CLI command
# add db CLI commands
from . import db
db.init_app(app)
# add clear queue CLI command
from . import owncast_helpers
app.cli.add_command(owncast_helpers.clear_queue_command)
app.cli.add_command(db.clear_queue_command)
app.cli.add_command(db.refresh_counters_command)
# scheduler job for giving points to users
def proxy_job():
with app.app_context():