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_webhooks.bp)
|
||||||
app.register_blueprint(owncast_redeem_dashboard.bp)
|
app.register_blueprint(owncast_redeem_dashboard.bp)
|
||||||
|
|
||||||
# add db initialization CLI command
|
# add db CLI commands
|
||||||
from . import db
|
from . import db
|
||||||
db.init_app(app)
|
db.init_app(app)
|
||||||
|
app.cli.add_command(db.clear_queue_command)
|
||||||
# add clear queue CLI command
|
app.cli.add_command(db.refresh_counters_command)
|
||||||
from . import owncast_helpers
|
|
||||||
app.cli.add_command(owncast_helpers.clear_queue_command)
|
|
||||||
|
|
||||||
# scheduler job for giving points to users
|
# scheduler job for giving points to users
|
||||||
def proxy_job():
|
def proxy_job():
|
||||||
|
|
Loading…
Reference in New Issue