forked from rDrama/rDrama
1
0
Fork 0
Aevann1 2021-09-29 19:33:15 +02:00
parent fb57043da9
commit db7f91115a
1 changed files with 6 additions and 0 deletions

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)