diff options
Diffstat (limited to 'www')
-rwxr-xr-x | www/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |