forked from rDrama/rDrama
fd'
parent
d0e1af0fa7
commit
12884146aa
|
@ -180,12 +180,10 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words=''
|
||||||
return posts
|
return posts
|
||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
@app.get("/logged_out")
|
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def front_all(v):
|
def front_all(v):
|
||||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
|
||||||
|
|
||||||
if not v and request.full_path == "/": return redirect("/logged_out")
|
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)
|
try: page = int(request.args.get("page") or 1)
|
||||||
except: abort(400)
|
except: abort(400)
|
||||||
|
|
Loading…
Reference in New Issue