From 07e8a1deaa45098e302e5bd85d1528c5c5992233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 Feb 2023 00:14:33 +0100 Subject: =?UTF-8?q?pisanje=20=C4=8Dlanka?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www') diff --git a/www/app.py b/www/app.py index b7df4fc..d4872d7 100755 --- a/www/app.py +++ b/www/app.py @@ -44,7 +44,7 @@ def index(): result.append(this) result = sorted(result, reverse=(request.args.get("order") == "padajoče"), key=lambda x:x["found"].timestamp() if request.args.get("sort") == "datumu" else x["files" if request.args.get("sort") == "datotekah" else "size" if request.args.get("sort") == "velikosti" else "crash"]) out = render_template("index.html", found_torrents=result, lentorrents=len(result)) - if pr is not None: + if getenv("PROFILE"): pr.disable() pr.dump_stats(getenv("PROFILE")) return out -- cgit v1.2.3