Compare commits

...

3 Commits

2 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,7 @@ from dash.dependencies import Input, Output
from .app import app from .app import app
from .pages.home import app as home from .pages.home import app as home
from .pages.exams_scores import app as exams_scores from .pages.exams_scores import app as exams_scores
import dash_html_components as html
@app.callback(Output("page-content", "children"), [Input("url", "pathname")]) @app.callback(Output("page-content", "children"), [Input("url", "pathname")])

View File

@ -2,8 +2,7 @@
# encoding: utf-8 # encoding: utf-8
import click import click
from recopytex.dashboard.app import app as dash from recopytex.dashboard.index import app as dash
@click.group() @click.group()
def cli(): def cli():
@ -14,3 +13,6 @@ def cli():
@click.option("--debug", default=0, help="Debug mode for dash") @click.option("--debug", default=0, help="Debug mode for dash")
def dashboard(debug): def dashboard(debug):
dash.run_server(debug=bool(debug)) dash.run_server(debug=bool(debug))
if __name__ == "__main__":
cli()