add new and moved CLI commands to init
This commit is contained in:
parent
657854eb5d
commit
7b9dbc805c
|
@ -30,13 +30,11 @@ 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():
|
||||
|
|
Loading…
Reference in New Issue