From e9cd4be46a35506b30201ccf83cac365a499fd93 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 2cb0a11..c3816f6 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 59c1e4c..09b9cc0 100644 --- a/store/templates/catalog.html +++ b/store/templates/catalog.html @@ -66,10 +66,10 @@