diff --git a/app.py b/app.py index 661e601..7d67cf0 100755 --- a/app.py +++ b/app.py @@ -21,6 +21,13 @@ def create_object(): return redirect('/') +@app.route('/object/') +def object(id: int): + conn = db.get() + object = db.Object.get_from_id(id, conn) + return render_template('object.html', object=object) + + @app.route("/calibration") def calibration(): return render_template('calibration.html') diff --git a/templates/base.html b/templates/base.html index c9fc9a6..1b62d72 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,9 +5,7 @@ NenuScanner - {% block extracss %} - - {% endblock extracss %} + {% block extracss %}{% endblock extracss %}