From e6dec9168ef9c2c5ccd45fafac295cb8b822a463 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Sun, 7 Jul 2024 22:59:09 +0200 Subject: [PATCH] Working --- app.py | 7 +++++++ templates/base.html | 4 +--- templates/index.html | 12 ++++++------ templates/object.html | 10 ++++++++++ 4 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 templates/object.html 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 %}