summaryrefslogtreecommitdiffstats
path: root/www/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'www/app.py')
-rwxr-xr-xwww/app.py2
1 files changed, 1 insertions, 1 deletions
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