From 7d4c959c474ae26aabf2d333c633325837b180e4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 22 Jan 2022 01:59:39 +0200 Subject: [PATCH] xcvxvcvxc --- files/routes/awards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index f48687c45f..c0d45d54e2 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -571,10 +571,10 @@ def award_comment(cid, v): g.db.add(c.author) g.db.commit() - print(request.referrer) + if v.id == 1: print(request.referrer) if request.referrer and len(request.referrer) > 1 and (request.referrer.startswith('/') or request.referrer.startswith(request.host_url)): return redirect(request.referrer) - print(request.host_url) + if v.id == 1: print('host: ' request.host_url) return redirect("/") @app.get("/admin/awards")