From 21e968f0ba4e56560114248090b5181fddeafe30 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 26 Aug 2023 11:29:02 +0200 Subject: [PATCH] appstore: basic filter implementation --- store/app.py | 2 +- store/templates/catalog.html | 42 ++++++++++++++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/store/app.py b/store/app.py index 2cb0a11e..c3816f6e 100644 --- a/store/app.py +++ b/store/app.py @@ -119,7 +119,7 @@ def index(): @app.route('/catalog') def browse_catalog(category_filter=None): - return render_template("catalog.html", user=session.get('user', {}), catalog=catalog) + return render_template("catalog.html", user=session.get('user', {}), catalog=catalog, timestamp_now=int(time.time())) @app.route('/app/') diff --git a/store/templates/catalog.html b/store/templates/catalog.html index 59c1e4c0..09b9cc09 100644 --- a/store/templates/catalog.html +++ b/store/templates/catalog.html @@ -66,10 +66,10 @@