From ac403b03bad6b264371128c652d12902b19455c1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 30 Jul 2021 11:48:19 +0200 Subject: [PATCH] fdfd --- drama/routes/front.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drama/routes/front.py b/drama/routes/front.py index b5832be4f..14d62e084 100644 --- a/drama/routes/front.py +++ b/drama/routes/front.py @@ -14,6 +14,8 @@ def slash_post(): @auth_required def notifications(v): + start = time.time() + if v and v.is_banned and not v.unban_utc: return render_template("seized.html") page = int(request.args.get('page', 1)) @@ -60,6 +62,9 @@ def notifications(v): if c not in listing: listing.append(c) + print(type(time.time())) + print(time.time() - start) + return render_template("notifications.html", v=v, notifications=listing, @@ -181,8 +186,6 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words='' @auth_desired def front_all(v): - start = time.time() - if v and v.is_banned and not v.unban_utc: return render_template("seized.html") try: page = int(request.args.get("page") or 1) @@ -217,9 +220,6 @@ def front_all(v): # check if ids exist posts = get_posts(ids, v=v) - print(type(time.time())) - print(time.time() - start) - if request.path == "/": return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page) else: return jsonify({"data": [x.json for x in posts], "next_exists": next_exists})