From 14624a4f6e81eaefe64bdf1ca5a882c3871ba1bf Mon Sep 17 00:00:00 2001 From: bton Date: Sat, 1 Jun 2024 22:04:26 +0200 Subject: [PATCH] limit ui --- Website/__init__.py | 2 +- Website/templates/list.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Website/__init__.py b/Website/__init__.py index 9939743..8220179 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -63,7 +63,7 @@ def create_app(test_config=None): c = db.cursor() c.execute("SELECT * FROM users") users = c.fetchall() - return render_template("list.html", users=users, preis=(preis/100)) + return render_template("list.html", users=users, preis=(preis/100), min_value=-50000) @app.route("/transactionlist") def transactionlist(): diff --git a/Website/templates/list.html b/Website/templates/list.html index cd29f13..07bfad3 100644 --- a/Website/templates/list.html +++ b/Website/templates/list.html @@ -18,16 +18,16 @@ Strichliste

-{% for i in users %} +{% for user in users %}

- {{i[1]}}: {{i[2]/100}}€ + {{user[1]}}: {{user[2]/100}}€

- - + +
- +