master
Aevann1 2022-01-22 01:58:01 +02:00
parent 668aa981f3
commit 92b0d45bec
1 changed files with 3 additions and 1 deletions

View File

@ -571,9 +571,11 @@ def award_comment(cid, v):
g.db.add(c.author)
g.db.commit()
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)
else: return redirect("/")
print(request.host_url)
return redirect("/")
@app.get("/admin/awards")
@admin_level_required(2)