functionele logs toegevoegd in seed.py AT

This commit is contained in:
Anh-Thy04
2025-05-27 16:01:19 +02:00
parent 8c0877d7eb
commit 42ea35bd47
3 changed files with 13 additions and 7 deletions

View File

@@ -12,8 +12,8 @@ dash_blueprint = Blueprint("dash", __name__, template_folder="templates")
#@login_required
def dashboard():
Plates = AllowedPlate.query.all()
recent_logs = LoggedItem.query.order_by(LoggedItem.dateLogged.desc()).limit(50).all()
return render_template("dashboard.html", plates=Plates, recent_logs=recent_logs)
logs = LoggedItem.query.order_by(LoggedItem.dateLogged.desc()).limit(50).all()
return render_template("dashboard.html", plates=Plates, logs=logs)
@dash_blueprint.route('/add', methods=['GET', 'POST'])