diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-02-27 00:14:33 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-02-27 00:14:33 +0100 |
commit | 07e8a1deaa45098e302e5bd85d1528c5c5992233 (patch) | |
tree | a61c78e27c8ee12718edd41dfa3f6506b8e5b983 /www | |
parent | flask je prepočasen => src/metainfo.c (diff) | |
download | travnik-07e8a1deaa45098e302e5bd85d1528c5c5992233.tar travnik-07e8a1deaa45098e302e5bd85d1528c5c5992233.tar.gz travnik-07e8a1deaa45098e302e5bd85d1528c5c5992233.tar.bz2 travnik-07e8a1deaa45098e302e5bd85d1528c5c5992233.tar.lz travnik-07e8a1deaa45098e302e5bd85d1528c5c5992233.tar.xz travnik-07e8a1deaa45098e302e5bd85d1528c5c5992233.tar.zst travnik-07e8a1deaa45098e302e5bd85d1528c5c5992233.zip |
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 |