fds
This commit is contained in:
parent
f7511c1031
commit
ba9db57779
1 changed files with 0 additions and 7 deletions
|
@ -177,13 +177,6 @@ def post_id(pid, anything=None, v=None):
|
|||
|
||||
post.preloaded_comments = comments.all()
|
||||
|
||||
keys = []
|
||||
for key, val in session.items():
|
||||
if type(val) is int and key not in ['login_nonce','user_id']:
|
||||
keys.append(key)
|
||||
|
||||
for key in keys: session.pop(key)
|
||||
|
||||
post.views += 1
|
||||
g.db.add(post)
|
||||
if isinstance(session.get('over_18', 0), dict): session["over_18"] = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue