summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-02-27 00:14:33 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-02-27 00:14:33 +0100
commit07e8a1deaa45098e302e5bd85d1528c5c5992233 (patch)
treea61c78e27c8ee12718edd41dfa3f6506b8e5b983 /www
parentflask je prepočasen => src/metainfo.c (diff)
downloadtravnik-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-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