fixed typo, forgot @
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user