gfgf
This commit is contained in:
parent
be7c086e5c
commit
1d555e6953
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,6 @@ def submit_get(v):
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def post_id(pid, anything=None, v=None):
|
def post_id(pid, anything=None, v=None):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/post/{pid}")
|
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/post/{pid}")
|
||||||
|
|
||||||
if v and "logged_out" in request.full_path: v = None
|
if v and "logged_out" in request.full_path: v = None
|
||||||
|
@ -83,6 +81,8 @@ def post_id(pid, anything=None, v=None):
|
||||||
|
|
||||||
post = get_post(pid, v=v)
|
post = get_post(pid, v=v)
|
||||||
|
|
||||||
|
if v and v.id == 1: print(post.realbody(v))
|
||||||
|
|
||||||
if v:
|
if v:
|
||||||
votes = g.db.query(CommentVote).filter_by(user_id=v.id).subquery()
|
votes = g.db.query(CommentVote).filter_by(user_id=v.id).subquery()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue