This commit is contained in:
Aevann1 2021-09-29 19:33:15 +02:00
parent 287d0861a9
commit 6bf7a68722

View file

@ -177,6 +177,12 @@ 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)