diff --git a/flaskfdx/dashboard.py b/flaskfdx/dashboard.py index 891126e..718eafd 100644 --- a/flaskfdx/dashboard.py +++ b/flaskfdx/dashboard.py @@ -10,10 +10,10 @@ from flaskfdx.db import get_db bp = Blueprint('dashboard', __name__) -bp.route('/') +@bp.route('/') def index(): db = get_db() lastseven = db.execute( - 'SELECT * FROM total WHERE datetime(date) > datetime("now", "-8 days")' + 'SELECT * FROM totals WHERE datetime(date) > datetime("now", "-8 days")' ).fetchall() return render_template('dashboard/index.html', lastseven=lastseven)